]> git.localhorst.tv Git - alttp.git/commitdiff
annotate timezone
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 31 Aug 2025 17:22:36 +0000 (19:22 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 31 Aug 2025 17:22:36 +0000 (19:22 +0200)
resources/js/i18n/de.js
resources/js/i18n/en.js
resources/js/pages/Event.jsx
resources/js/pages/Schedule.jsx

index c083c53b316cbf847d7f2d0f2313eb070462617f..acabf339e5773678c4661183e5af19f8efa1bca5 100644 (file)
@@ -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',
index 3bf5c782aa8ea02ef35ef111c46bddb7f72dc122..f31bbd61c235624171b19f3b62e1f4d096d5f00e 100644 (file)
@@ -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',
index c3efc4039be9ccb33ba7987853a85a35b4d14ddb..2eba568e0446bed25e4016998300771ed7b404d4 100644 (file)
@@ -184,9 +184,15 @@ export const Component = () => {
                                                : null}
                                        </div>
                                </div>
-                               {episodes.length ?
+                               {episodes.length ? <>
+                                       <div className="text-muted">
+                                               {t('schedule.tzHint', {
+                                                       tzname: Intl.DateTimeFormat().resolvedOptions().timeZone,
+                                                       tzoff: moment().format('Z'),
+                                               })}
+                                       </div>
                                        <EpisodeList episodes={episodes} />
-                               :
+                               </> :
                                        <Alert variant="info">
                                                {t(pastMode ? 'events.noPastEpisodes' : 'events.noUpcomingEpisodes')}
                                        </Alert>
index 1738cb194211ff6e7bda41fe3bfd3c915b6cf138..c4be99ead8430b9fe40c707bd64ad768b569b07c 100644 (file)
@@ -135,6 +135,12 @@ export const Component = () => {
                <ErrorBoundary>
                        {episodes.length ?
                                <EpisodesProvider setEpisodes={setEpisodes}>
+                                       <div className="text-muted">
+                                               {t('schedule.tzHint', {
+                                                       tzname: Intl.DateTimeFormat().resolvedOptions().timeZone,
+                                                       tzoff: moment().format('Z'),
+                                               })}
+                                       </div>
                                        <List episodes={episodes} />
                                </EpisodesProvider>
                        :