From: Hypolite Petovan Date: Sun, 3 Oct 2021 17:42:17 +0000 (-0400) Subject: Display the current timezone in date time picker fields X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a31a64827f81c1ead09c8bf468871653505efa39;p=friendica.git Display the current timezone in date time picker fields --- diff --git a/src/Util/Temporal.php b/src/Util/Temporal.php index 0b1b26fe9d..a49995a034 100644 --- a/src/Util/Temporal.php +++ b/src/Util/Temporal.php @@ -271,7 +271,11 @@ class Temporal $id, $label, $input_text, - '', + DI::l10n()->t( + 'Time zone: %s Change in Settings', + str_replace('_', ' ', DI::app()->getTimeZone()) . ' (GMT ' . DateTimeFormat::localNow('P') . ')', + DI::baseUrl() . '/settings' + ), $required ? '*' : '', 'placeholder="' . $readable_format . '"' ], @@ -284,7 +288,7 @@ class Temporal 'lang' => $lang, 'minfrom' => $minfrom, 'maxfrom' => $maxfrom, - ] + ], ]); return $o;