mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-05 07:34:23 +00:00
Merge pull request 'fix(api): Force DateTime to UTC where timezone naive' (#386) from timezone-offset into master
Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.app/pulls/386 Reviewed-by: Inex Code <inex.code@selfprivacy.org>
This commit is contained in:
commit
98262a473f
|
@ -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