mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-07 00:24:18 +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());
|
print(response.exception.toString());
|
||||||
}
|
}
|
||||||
if (response.parsedData!.rebootSystem.success) {
|
if (response.parsedData!.rebootSystem.success) {
|
||||||
time = DateTime.now();
|
time = DateTime.now().toUtc();
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print(e);
|
print(e);
|
||||||
|
|
|
@ -248,7 +248,7 @@ class ServerApi extends GraphQLApiMap
|
||||||
final GraphQLClient client = await getClient();
|
final GraphQLClient client = await getClient();
|
||||||
|
|
||||||
final input = Input$RecoveryKeyLimitsInput(
|
final input = Input$RecoveryKeyLimitsInput(
|
||||||
expirationDate: expirationDate,
|
expirationDate: expirationDate?.toUtc(),
|
||||||
uses: numberOfUses,
|
uses: numberOfUses,
|
||||||
);
|
);
|
||||||
final variables = Variables$Mutation$GetNewRecoveryApiKey(
|
final variables = Variables$Mutation$GetNewRecoveryApiKey(
|
||||||
|
|
Loading…
Reference in a new issue