Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Time zone fixes (Read 11784 times)
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Time zone fixes
Reply #6 - Apr 9th, 2014 at 1:31pm
Print Post  
Event Calendar is now showing the proper dates for both 'Today' and the events.  Smiley
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Time zone fixes
Reply #5 - Apr 8th, 2014 at 8:48pm
Print Post  
Just uploaded the newest code - Allowing TimeZone selection is an Admin option. Got some 'file bomb's refactored (they were coded much the same way as the section that was suseptable to emptying the vars files). At this moment, TZ selection is disabled. I'll turn it back on in a bit.

Edited:
The Event Calendar is messed if the TZ is not UTC.  Smiley
« Last Edit: Apr 8th, 2014 at 10:48pm by Dandello »  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Time zone fixes
Reply #4 - Apr 8th, 2014 at 3:14pm
Print Post  
Still a bit more work - but I've got the dropdown using Country - City so that should help. The database that ships with DateTime::TimeZone is the 'official one' but getting the country names to render required yet another Perl Module. (Locale::Country - which ships with newer versions of Perl.)

The next step is to simplify the code I wrote and put in checkers so the TZ will default to UTC if the needed modules aren't installed. (Or make it an Admin choice which MAY be easier - easier to test at least.  Roll Eyes)
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
xnoddyx
Global Moderator
*****
Offline


I Love YaBB!

Posts: 31
Location: UK:Scotland/Livingston
Joined: Feb 18th, 2014
Gender: Male
Re: Time zone fixes
Reply #3 - Apr 8th, 2014 at 10:01am
Print Post  
Dandello wrote on Apr 7th, 2014 at 1:58pm:
I have to double check whether ot not there are any odd places outside of DateTime.pm that have code to format time or are trying to access time offset variables that aren't there any more.

cool Smiley

Dandello wrote on Apr 7th, 2014 at 1:58pm:
I have to double check whether ot not there are any odd places outside of DateTime.pm that have code to format time or are trying to access time offset variables that aren't there any more.

god you are going to be at it for ever almost this may go some to help you worldtimezone com
  

as bill and ted say be excellent to each other
(More to come)
Back to top
GTalkFacebookYouTube  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Time zone fixes
Reply #2 - Apr 7th, 2014 at 1:58pm
Print Post  
I have a wee bit more work on it - specifically some variable localization and import/export into Subs for the dynamic clock. 

I have to double check whether ot not there are any odd places outside of DateTime.pm that have code to format time or are trying to access time offset variables that aren't there any more.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
xnoddyx
Global Moderator
*****
Offline


I Love YaBB!

Posts: 31
Location: UK:Scotland/Livingston
Joined: Feb 18th, 2014
Gender: Male
Re: Time zone fixes
Reply #1 - Apr 7th, 2014 at 10:13am
Print Post  
looks good for me UTC was 10:10 and Europe/London was 11:10 as uk is now in GMT BST so we are now +1 from UTC  Smiley
  

as bill and ted say be excellent to each other
(More to come)
Back to top
GTalkFacebookYouTube  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Time zone fixes
Apr 6th, 2014 at 8:53pm
Print Post  
I've got a new Time-Zone selector going here. It seems to work except for the dynamic clock that isn't picking up on the correct time offset. (New York is coming in at +4 hrs from my TZ and it should be +3.)  Angry

Edited:
I think I have it working now - but more testing would be good.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint