Page Index Toggle Pages: 1 ReplyAdd Poll Send Topic
Normal Topic Time zone fixes (Read 5428 times)
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 1939
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Creative
Zodiac sign: Virgo
Re: Time zone fixes
Reply #6 - Apr 9th, 2014 at 1:31pm
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 1939
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Creative
Zodiac sign: Virgo
Re: Time zone fixes
Reply #5 - Apr 9th, 2014 at 1:31pm
Mark & QuoteQuote  
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
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 1939
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Creative
Zodiac sign: Virgo
Re: Time zone fixes
Reply #4 - Apr 9th, 2014 at 1:31pm
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box xnoddyx
Global Moderator
*****
Offline


I Love YaBB!

Posts: 31
Location: UK:Scotland/Livingston
Joined: Feb 18th, 2014
Gender: Male
Zodiac sign: Scorpio
Re: Time zone fixes
Reply #3 - Apr 9th, 2014 at 1:31pm
Mark & QuoteQuote  
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
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1939
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Creative
Zodiac sign: Virgo
Re: Time zone fixes
Reply #2 - Apr 9th, 2014 at 1:31pm
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box xnoddyx
Global Moderator
*****
Offline


I Love YaBB!

Posts: 31
Location: UK:Scotland/Livingston
Joined: Feb 18th, 2014
Gender: Male
Zodiac sign: Scorpio
Re: Time zone fixes
Reply #1 - Apr 9th, 2014 at 1:31pm
Mark & QuoteQuote  
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
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1939
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Creative
Zodiac sign: Virgo
Time zone fixes
Apr 9th, 2014 at 1:31pm
Mark & QuoteQuote  
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
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google Google+ LinkedIn reddit StumbleUpon Twitter Yahoo
Time zone fixes

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry