converting and desconverting all dates to utc
This commit is contained in:
@@ -65,7 +65,7 @@ class ClockInRepositoryImpl implements ClockInRepositoryInterface {
|
||||
/// Helper to create Timestamp from DateTime
|
||||
Timestamp _fromDateTime(DateTime d) {
|
||||
// Assuming Timestamp.fromJson takes an ISO string
|
||||
return Timestamp.fromJson(d.toIso8601String());
|
||||
return Timestamp.fromJson(d.toUtc().toIso8601String());
|
||||
}
|
||||
|
||||
/// Helper to find today's active application
|
||||
|
||||
Reference in New Issue
Block a user