mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(web): only show the timezone when it is known (#12779)
This commit is contained in:
parent
96516ae4b9
commit
0b02fda4e0
2 changed files with 25 additions and 25 deletions
|
|
@ -36,6 +36,9 @@ export type ScrollTargetListener = ({
|
|||
export const fromLocalDateTime = (localDateTime: string) =>
|
||||
DateTime.fromISO(localDateTime, { zone: 'UTC', locale: get(locale) });
|
||||
|
||||
export const fromDateTimeOriginal = (dateTimeOriginal: string, timeZone: string) =>
|
||||
DateTime.fromISO(dateTimeOriginal, { zone: timeZone });
|
||||
|
||||
export const groupDateFormat: Intl.DateTimeFormatOptions = {
|
||||
weekday: 'short',
|
||||
month: 'short',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue