mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-05 07:34:23 +00:00
fix(api): Force DateTime to UTC where timezone naive
- Solve https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.app/issues/385
This commit is contained in:
parent
dd9722646e
commit
ec8d08ff07
|
@ -29,7 +29,7 @@ mixin ServerActionsApi on GraphQLApiMap {
|
|||
print(response.exception.toString());
|
||||
}
|
||||
if (response.parsedData!.rebootSystem.success) {
|
||||
time = DateTime.now();
|
||||
time = DateTime.now().toUtc();
|
||||
}
|
||||
} catch (e) {
|
||||
print(e);
|
||||
|
|
|
@ -248,7 +248,7 @@ class ServerApi extends GraphQLApiMap
|
|||
final GraphQLClient client = await getClient();
|
||||
|
||||
final input = Input$RecoveryKeyLimitsInput(
|
||||
expirationDate: expirationDate,
|
||||
expirationDate: expirationDate?.toUtc(),
|
||||
uses: numberOfUses,
|
||||
);
|
||||
final variables = Variables$Mutation$GetNewRecoveryApiKey(
|
||||
|
|
Loading…
Reference in a new issue