From 4bd585d1dc3bc3112f0d88c409367f48f754bfa7 Mon Sep 17 00:00:00 2001 From: Armand <4831c0@proton.me> Date: Thu, 11 Sep 2025 17:59:30 +0200 Subject: [PATCH] grade: convert dates to local ones --- firka/lib/helpers/api/model/grade.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firka/lib/helpers/api/model/grade.dart b/firka/lib/helpers/api/model/grade.dart index ef21ab1..1d20ff2 100644 --- a/firka/lib/helpers/api/model/grade.dart +++ b/firka/lib/helpers/api/model/grade.dart @@ -42,10 +42,10 @@ class Grade { factory Grade.fromJson(Map json) { return Grade( uid: json['Uid'], - recordDate: DateTime.parse(json['RogzitesDatuma']), - creationDate: DateTime.parse(json['KeszitesDatuma']), + recordDate: DateTime.parse(json['RogzitesDatuma']).toLocal(), + creationDate: DateTime.parse(json['KeszitesDatuma']).toLocal(), ackDate: json['LattamozasDatuma'] != null - ? DateTime.parse(json['LattamozasDatuma']) + ? DateTime.parse(json['LattamozasDatuma']).toLocal() : null, subject: Subject.fromJson(json['Tantargy']), topic: json['Tema'],