The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
asia/kolkata timezone not work after update 4.2.5
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 |
#2
|
|||
|
|||
Are you sure the time on your actual server (NTP) is not running behind?
|
#3
|
|||
|
|||
You cannot, its basically a bug.
The changes made for php7 mean it will only work with whole hours, not 0.5 hours. |
#4
|
|||
|
|||
how can i fix it, please help me, i have 2 forum. i have same issue on both forum
|
#5
|
|||
|
|||
It would need core code changes in multiple places I think
|
#6
|
|||
|
|||
who can make a plugin for me to fix timezone issue on vb4.2.5?
please help me |
#7
|
||||
|
||||
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 [DATE]1502454435[/DATE] at [TIME]1502454435[/TIME] --------------- OK it seems: PHP Code:
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 [DATE]1502461642[/DATE] at [TIME]1502461642[/TIME] --------------- OK, functions.php in the /includes/ directory. Line 4503: Code:
$tzos = intval($vbulletin->userinfo['timezoneoffset']); 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 [DATE]1502462449[/DATE] at [TIME]1502462449[/TIME] --------------- So my final determination is to simply change Code:
$tzos = intval($vbulletin->userinfo['timezoneoffset']); Code:
$tzos = floatval($vbulletin->userinfo['timezoneoffset']); Unfortunately I don't see any way to make this a plugin, the manual edit it necessary. |
#8
|
|||
|
|||
Quote:
now time is working perfect but timezone steel show +5 i want to display timezone +5.30 |
#9
|
||||
|
||||
Where is it displaying this? Screenshot?
|
#10
|
||||
|
||||
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. |
Благодарность от: | ||
TheLastSuperman |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|