fix(event): dates no longer break when editing event

This commit is contained in:
ElPoyo
2026-06-15 15:28:52 +02:00
parent f32fe3e4e8
commit 3c49d6ed21
14 changed files with 105 additions and 29 deletions
+1 -1
View File
@@ -407,7 +407,7 @@ class EquipmentModel {
DateTime? parseDate(dynamic value) {
if (value == null) return null;
if (value is Timestamp) return value.toDate();
if (value is String) return DateTime.tryParse(value);
if (value is String) return DateTime.tryParse(value)?.toLocal();
if (value is int) return DateTime.fromMillisecondsSinceEpoch(value);
return null;
}