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