Quote:
Originally Posted by IrPr
Hi Andrew,
want to report a little bug and its fix
Timezone offsets aren't integeral at all, they're decimal and casting their type into integeral will broke some submition dates during add/edit Entries
if your forum/user timezone is +/-x:30, all of submitions will differ +/- 30 minutes to original submition time
Here is bugfix:
File: includes/local_links_misc.php, function: get_datetimebit, about line: 1456
Find:
PHP Code:
$tzoffset = intval($vbulletin->userinfo['tzoffset'])-$vbulletin->userinfo['dstonoff'];
Replace with:
PHP Code:
$tzoffset = $vbulletin->userinfo['tzoffset']-$vbulletin->userinfo['dstonoff'];
also i would suggest add default check to Update to current date and time option during Add entries, but edit
Thanks;
|
Thanks - will implement the timezone fix.
For the time being, I will not change the behaviour of the 'update to now' checkbox, but leave it as a suggestion. There's a major site which routinely sets new entries to appear at sometime in the future. Having this box checked by default would be confusing to them. It will need a bit of Javascript to ensure that this box gets unchecked if the user modifies the date/time.