aboutsummaryrefslogtreecommitdiff
path: root/app/views/auth
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-01-19 18:26:04 +0100
committerGravatar GitHub <noreply@github.com> 2023-01-19 18:26:04 +0100
commitdbdb7869c47ab8c9e3a42384401a7e29599e192f (patch)
tree2edb8f6ca9210bc0219d80084f846385da048d3a /app/views/auth
parentd105761fec48b388aa96e5089111b5c5ae941df2 (diff)
Safer timezone set (#5021)
* Safer timezone set Add missing tzdata in Docker :newest Fallback to UTC if no timezone is defined at all #fix https://github.com/FreshRSS/FreshRSS/pull/4906#issuecomment-1386747169 * Better refactoring Show fallback timezone everywhere
Diffstat (limited to 'app/views/auth')
-rw-r--r--app/views/auth/register.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/auth/register.phtml b/app/views/auth/register.phtml
index 66c4a1ccb..999b2406a 100644
--- a/app/views/auth/register.phtml
+++ b/app/views/auth/register.phtml
@@ -21,7 +21,7 @@
<?php $timezones = array_merge([''], DateTimeZone::listIdentifiers()); ?>
<?php foreach ($timezones as $timezone): ?>
<option value="<?= $timezone ?>"<?= $timezone === '' ? ' selected="selected"' : '' ?>>
- <?= $timezone == '' ? _t('gen.short.by_default') . ' (' . ini_get('date.timezone') . ')' : $timezone ?>
+ <?= $timezone == '' ? _t('gen.short.by_default') . ' (' . FreshRSS_Context::defaultTimeZone() . ')' : $timezone ?>
</option>
<?php endforeach; ?>
</select>