From 7893ac25fbae2f102a589696a4f5a71fb5905077 Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Date: Fri, 12 Sep 2025 00:50:39 +0530 Subject: [PATCH] fix: always use en locale for parsing timeline datetime (#21796) Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- mobile/lib/infrastructure/repositories/timeline.repository.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/lib/infrastructure/repositories/timeline.repository.dart b/mobile/lib/infrastructure/repositories/timeline.repository.dart index 61428ede92..97c9b6f493 100644 --- a/mobile/lib/infrastructure/repositories/timeline.repository.dart +++ b/mobile/lib/infrastructure/repositories/timeline.repository.dart @@ -595,7 +595,7 @@ extension on String { GroupAssetsBy.none => throw ArgumentError("GroupAssetsBy.none is not supported for date formatting"), }; try { - return DateFormat(format).parse(this); + return DateFormat(format, 'en').parse(this); } catch (e) { throw FormatException("Invalid date format: $this", e); }