Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 6 Years, 4 Months, 3 Weeks ago Wrong time for new users on my forum
#7
Solved: 6 Years, 4 Months, 3 Weeks ago
It is form related.

And the guide is wrong at least for myBB 1.6.13. Removing the form or commenting it out causes to register with time UTC 0 and no DST. That is a bug!!
It's really stupid that eventhough you set default timezone and DST for the forum (and new users), still the stupid form is above it all.



I fixed it myself - or did a bypass.

Removing the form or commenting it out, as I said, causes a bug - default settings set via ACP get overriden and new users register with UTC 0 / GMT 0 DST 0.


To fix that - in template member_register, you need to re-add the time settings, find the fieldset markup related to them, it looks like that in default theme:

<fieldset class="trow2">
<legend><strong><label for="timezone">{$lang->time_offset}</label></strong></legend>

And simply replace it with:

<fieldset class="trow2" style="visibility:hidden;">
<legend><strong><label for="timezone">{$lang->time_offset}</label></strong></legend>

If you have the form removed and don't know where to look for the whole code part then here it is with the modification added:

<fieldset class="trow2" style="visibility:hidden;">
<legend><strong><label for="timezone">{$lang->time_offset}</label></strong></legend>
<table cellspacing="0" cellpadding="{$theme['tablespace']}" width="100%">
<tr>
<td><span class="smalltext">{$lang->time_offset_desc}</span></td>
</tr>
<tr>
<td>{$tzselect}</td>
</tr>
<tr>
<td><span class="smalltext">{$lang->dst_correction}</span></td>
</tr>
<tr>
<td>
	<select name="dstcorrection">
		<option value="2" {$dst_auto_selected}>{$lang->dst_correction_auto}</option>
		<option value="1" {$dst_enabled_selected}>{$lang->dst_correction_enabled}</option>
		<option value="0" {$dst_disabled_selected}>{$lang->dst_correction_disabled}</option>
	</select>
</td>
</tr>
</table>
</fieldset>
Jump to the post that solved this thread.


Messages In This Thread
Wrong time for new users on my forum - by Vioner - 2015-05-24, 05:28 PM
RE: Wrong time for new users on my forum - by .m. - 2015-05-25, 03:59 PM
RE: Wrong time for new users on my forum - by .m. - 2015-05-25, 04:45 PM
RE: Wrong time for new users on my forum - by Vioner - 2015-05-25, 05:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)