mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
fix(app): respect time format setting in profile local time (#3018)
This commit is contained in:
@@ -237,6 +237,7 @@ export const UserProfileTimezoneInfo: React.FC<{profile: Profile}> = observer(({
|
||||
const localTime = getCachedDateTimeFormat(locale, {
|
||||
hour: 'numeric',
|
||||
minute: '2-digit',
|
||||
hour12: DateUtils.shouldUse12HourFormat(locale),
|
||||
timeZone: 'UTC',
|
||||
}).format(getDateAtOffset(now, timezoneOffset));
|
||||
const offsetDifference = timezoneOffset - getViewerOffsetMinutes();
|
||||
|
||||
Reference in New Issue
Block a user