mirror of
https://github.com/immich-app/immich.git
synced 2025-11-26 18:49:44 +09:00
fix(web): only show the timezone when it is known (#12779)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user