1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-18 06:54:39 +02:00

Closes - Display current server time in prefs.

This commit is contained in:
camer0n
2023-11-08 09:19:15 -08:00
parent eee2ae0cad
commit e831266d01

@ -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>