User can change his timezone

This commit is contained in:
leosw
2022-02-01 22:35:08 +01:00
parent 507bf492a0
commit f60cf54bab
3 changed files with 12 additions and 4 deletions

View File

@@ -47,6 +47,13 @@
<option <?=$userProfile->get_locale()==$locale->display_name?'selected':''?> value="<?=$locale->name?>"><?=$locale->display_name?></option>
<? } ?>
</select></li>
<li><label for="timezone">Fuseau horaire :</label>
<select name="timezone" id="timezone">
<? $timezones = timezone_identifiers_list();
foreach($timezones as $timezone) { ?>
<option <?=$userProfile->timezone==$timezone?'selected':''?> value="<?=$timezone?>"><?=$timezone?></option>
<? } ?>
</select></li>
<? if($user->rankIsHigher("administrator")) { ?>
<li><label for="rank">Rang : </label>
<select name="rank" id="rank">