mirror of
https://github.com/e107inc/e107.git
synced 2025-06-18 06:54:39 +02:00
Closes #5099 - Display current server time in prefs.
This commit is contained in:
@ -823,12 +823,14 @@ $text .= "
|
||||
</tr>";
|
||||
|
||||
$timeZones = systemTimeZones();
|
||||
$timez = new DateTimeZone($pref['timezone']);
|
||||
$datetime = new DateTime('now', $timez); // Get the current date and time
|
||||
|
||||
$text .= "
|
||||
<tr>
|
||||
<td><label for='timezone'>".PRFLAN_56."</label></td>
|
||||
<td>
|
||||
".$frm->select('timezone', $timeZones, vartrue($pref['timezone'], 'UTC'),'size=xlarge')."
|
||||
<td class='form-inline'>
|
||||
".$frm->select('timezone', $timeZones, vartrue($pref['timezone'], 'UTC'),'size=xlarge')." <span style='padding-left:10px'>".$datetime->format('Y-m-d H:i:s')."</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
Reference in New Issue
Block a user