Update usercp_register.tpl

This commit is contained in:
Roman Kelesidis 2023-10-16 23:15:00 +07:00
parent f85827534a
commit 4b061c4e97

View File

@ -40,14 +40,12 @@ ajax.callback.user_register = function(data){
<!-- IF ADM_EDIT -->
<input type="hidden" name="u" value="{PR_USER_ID}" />
<!-- ENDIF -->
<!-- IF not ADM_EDIT -->
<!-- IF not EDIT_PROFILE -->
<script type="text/javascript">
x = new Date();
tz = -x.getTimezoneOffset()/60;
document.write('<input type="hidden" name="user_timezone" value="'+tz+'" />');
</script>
<!-- ELSE -->
<input type="hidden" name="user_timezone" value="{USER_TIMEZONE}" />
<!-- ENDIF -->
<table class="forumline prof-tbl">
@ -156,6 +154,10 @@ document.write('<input type="hidden" name="user_timezone" value="'+tz+'" />');
</tr>
<!-- ENDIF -->
<!-- IF EDIT_PROFILE -->
<tr>
<td class="prof-title">{L_SYSTEM_TIMEZONE}:</td>
<td>{TIMEZONE_SELECT}</td>
</tr>
<tr>
<th colspan="2">{L_PREFERENCES}</th>
</tr>