vBulletin ModsThe Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=325494 |
i upgrade my forum with 4.2.5
i am from india and after update timezone show incorrect time my forum timezone set to +5.30 asia/kolkata but display +5. only my forum time running delay by 30 minutes please tell me how can i fix it |
Are you sure the time on your actual server (NTP) is not running behind?
|
You cannot, its basically a bug.
The changes made for php7 mean it will only work with whole hours, not 0.5 hours. |
Quote:
|
Quote:
Quote:
|
who can make a plugin for me to fix timezone issue on vb4.2.5?
please help me |
Quote:
Quote:
Can anyone confirm the last version timezones worked correctly? Did they work in 4.2.4? VB.com thread- https://www.vbulletin.com/forum/foru...r-update-4-2-5 (in case we get a fix.) EDIT- I have confirmed the partial hours DO work in VB 4.2.4. --------------- Added 11 Aug 2017 at 12:27 --------------- OK it seems:
is being forced to be an int somewhere in VB 4.2.5. In VB 4.2.4 it can be a float. 30 minutes would be like 4.5 and 45 minutes would be like 6.25 Still checking code for fix. --------------- Added 11 Aug 2017 at 14:27 --------------- OK, functions.php in the /includes/ directory. Line 4503:
If you remove intval from the code, the time works (you have to set the timezone again after making this change. It works in the forum and posts. It does NOT work on calendar events, for some reason there are additional intval() functions in the calculator. I'm going to look deeper into the security ramifications of removing the intval function from this line but a quick glace I see no problem. --------------- Added 11 Aug 2017 at 14:40 --------------- So my final determination is to simply change
to
on line 4503 of /includes/functions.php to get the time working on most of the site. Unfortunately I don't see any way to make this a plugin, the manual edit it necessary. |
Quote:
now time is working perfect but timezone steel show +5 i want to display timezone +5.30 |
Quote:
|
Its a bug.
The code was changed in multiple places due to changes in php 7.1 Unfortunately it wasnt realised that some timezones use 0.5 hours, so intval was used. This issue wasnt noticed until now, so too late to fix. As above, the fix would probably be to update all the changes to use floatval. |
https://www.vbulletin.org/forum/external/2017/08/3.png
i set timezone to +5.30 but its disply +5. only time is working fine after change from Quote:
Quote:
|
Quote:
Quote:
|
You may need to re-choose the timezone from the settings as well.
|
Quote:
same issue like time, timezone not display +-30 and +-45 |
Its just a display, you are worrying about it too much, that display doesnt do anything else.
|
All times are GMT. The time now is 07:35. |
Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.