From: Daniel Karbach Date: Sun, 31 Aug 2025 17:22:36 +0000 (+0200) Subject: annotate timezone X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=1529c000794a7e0bfcb33ce214434c3e904b5e9b;p=alttp.git annotate timezone --- diff --git a/resources/js/i18n/de.js b/resources/js/i18n/de.js index c083c53..acabf33 100644 --- a/resources/js/i18n/de.js +++ b/resources/js/i18n/de.js @@ -664,6 +664,7 @@ export default { lookbehind: 'Zurück (Tage)', reverse: 'Rückwärts', startTime: '{{ date, LT }}', + tzHint: 'Alle Zeiten lokal ({{ tzname }}, UTC{{ tzoff }})', }, search: { noResults: 'Keine Treffer', diff --git a/resources/js/i18n/en.js b/resources/js/i18n/en.js index 3bf5c78..f31bbd6 100644 --- a/resources/js/i18n/en.js +++ b/resources/js/i18n/en.js @@ -664,6 +664,7 @@ export default { lookbehind: 'Behind (days)', reverse: 'Reverse', startTime: '{{ date, LT }}', + tzHint: 'All times local ({{ tzname }}, UTC{{ tzoff }})', }, search: { noResults: 'No results', diff --git a/resources/js/pages/Event.jsx b/resources/js/pages/Event.jsx index c3efc40..2eba568 100644 --- a/resources/js/pages/Event.jsx +++ b/resources/js/pages/Event.jsx @@ -184,9 +184,15 @@ export const Component = () => { : null} - {episodes.length ? + {episodes.length ? <> +
+ {t('schedule.tzHint', { + tzname: Intl.DateTimeFormat().resolvedOptions().timeZone, + tzoff: moment().format('Z'), + })} +
- : + : {t(pastMode ? 'events.noPastEpisodes' : 'events.noUpcomingEpisodes')} diff --git a/resources/js/pages/Schedule.jsx b/resources/js/pages/Schedule.jsx index 1738cb1..c4be99e 100644 --- a/resources/js/pages/Schedule.jsx +++ b/resources/js/pages/Schedule.jsx @@ -135,6 +135,12 @@ export const Component = () => { {episodes.length ? +
+ {t('schedule.tzHint', { + tzname: Intl.DateTimeFormat().resolvedOptions().timeZone, + tzoff: moment().format('Z'), + })} +
: