mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
fix: always use en locale for parsing timeline datetime (#21796)
Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
42a03f2556
commit
7893ac25fb
1 changed files with 1 additions and 1 deletions
|
|
@ -595,7 +595,7 @@ extension on String {
|
||||||
GroupAssetsBy.none => throw ArgumentError("GroupAssetsBy.none is not supported for date formatting"),
|
GroupAssetsBy.none => throw ArgumentError("GroupAssetsBy.none is not supported for date formatting"),
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
return DateFormat(format).parse(this);
|
return DateFormat(format, 'en').parse(this);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw FormatException("Invalid date format: $this", e);
|
throw FormatException("Invalid date format: $this", e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue