mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Closes #5099 - Display current server time in prefs.
This commit is contained in:
@@ -823,12 +823,14 @@ $text .= "
|
|||||||
</tr>";
|
</tr>";
|
||||||
|
|
||||||
$timeZones = systemTimeZones();
|
$timeZones = systemTimeZones();
|
||||||
|
$timez = new DateTimeZone($pref['timezone']);
|
||||||
|
$datetime = new DateTime('now', $timez); // Get the current date and time
|
||||||
|
|
||||||
$text .= "
|
$text .= "
|
||||||
<tr>
|
<tr>
|
||||||
<td><label for='timezone'>".PRFLAN_56."</label></td>
|
<td><label for='timezone'>".PRFLAN_56."</label></td>
|
||||||
<td>
|
<td class='form-inline'>
|
||||||
".$frm->select('timezone', $timeZones, vartrue($pref['timezone'], 'UTC'),'size=xlarge')."
|
".$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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Reference in New Issue
Block a user