![]() |
|
Thread Tools |
#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 No members have liked this post.
|
#2
|
|||
|
|||
Are you sure the time on your actual server (NTP) is not running behind?
No members have liked this post.
|
#3
|
|||
|
|||
You cannot, its basically a bug.
The changes made for php7 mean it will only work with whole hours, not 0.5 hours. No members have liked this post.
|
#4
|
|||
|
|||
how can i fix it, please help me, i have 2 forum. i have same issue on both forum
No members have liked this post.
|
#5
|
|||
|
|||
It would need core code changes in multiple places I think
No members have liked this post.
|
#6
|
|||
|
|||
who can make a plugin for me to fix timezone issue on vb4.2.5?
please help me No members have liked this post.
|
#7
|
||||||||||||||||
|
||||||||||||||||
Originally Posted by Stingray27
I'm looking at the code and comparing it to VB 4.2.3 which I assume worked, but all the code I see had hard coded multiplying the offset by 3600 (which is # of seconds in an hour 60*60) so I don't understand where partial hours come into the code.![]()
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.
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
Last edited by BirdOPrey5; 11 Aug 2017 at 12:16. Reason: making progress |
#8
|
||||||||||||||||
|
||||||||||||||||
Originally Posted by BirdOPrey5
Thanks its work for me.![]()
now time is working perfect but timezone steel show +5 i want to display timezone +5.30 No members have liked this post.
|
#9
|
||||
|
||||
Where is it displaying this? Screenshot?
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#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.
__________________
Former vBulletin.org Staff Member
Cable Forum Please do not PM me about custom work - I no longer undertake any. Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum. The following members like this post: TheLastSuperman
|
#11
|
|||
|
|||
![]() i set timezone to +5.30 but its disply +5. only time is working fine after change from
No members have liked this post.
|
#12
|
|||
|
|||
More than one change
No members have liked this post.
|
#13
|
||||
|
||||
You may need to re-choose the timezone from the settings as well.
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#14
|
|||
|
|||
i re-choose timezone but steel show +5. only not +5.30
same issue like time, timezone not display +-30 and +-45 No members have liked this post.
|
#15
|
|||
|
|||
Its just a display, you are worrying about it too much, that display doesnt do anything else.
No members have liked this post.
|
![]() |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Shy Style 4 ...AFC Asia Cup 2007(Mr.Asia) | alawee.blawee | vBulletin 3.6 Styles | 2 | 06 Jul 2007 16:15 |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 04:42.