converting and desconverting all dates to utc

This commit is contained in:
José Salazar
2026-02-02 06:22:05 +09:00
parent a2020f9f98
commit 136993caec
5 changed files with 23 additions and 8 deletions

View File

@@ -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