Page Index Toggle Pages: [1] 2 
Topic Tools
Hot Topic (More than 10 Replies) Re: Is the YaBBforum.com server time currently off +10 (Read 1,337 times)
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Re: Is the YaBBforum.com server time currently off +10
Mar 16th, 2014 at 9:01pm
Post Tools
Something I noticed today (besides being off -10 minutes) is that DST didn't auto-correct.

I do have "Enable automatic Daylight Savings Time change" box checked.
  
Back to top
 
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online



Posts: 2,467
Location: Earth

YaBB 2.6.1
Re: Is the YaBBforum.com server time currently off +10
Reply #1 - Mar 16th, 2014 at 9:39pm
Post Tools
My bet is that the DST will auto correct when DST was supposed to kick in - we have the same problem will all our radio set clocks at home. They just didn't get the message that the date to switch over had changed.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,025
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Is the YaBBforum.com server time currently off +10
Reply #2 - Mar 16th, 2014 at 9:42pm
Post Tools
There were problems with DST compensation in earlier versions of YaBB. the server itself is on UTC (as far as I know) so its time may not be the same as Greenwich time. I can tell you the server itself is keeping correct time. Part of the issue is that start and end dates in any given TZ are subject to political whims.

I don't remember all the problems, but we had a go at them fairly recently, I think in YaBB 5.2. I think I discovered it had a Date Line issue. (i.e. if a server was more than 12 TZ away - kaboom -- reason the time is expressed as +- 12 hr adjustmesnts BUT it does not fix the date.  I had a test with a Russki Time Zone to ensure I was right.

I need to ask - is the time wrong both on the beta and yabbforum.com/community? They use two different codebases.

The minutes should be almost dead on at this point.

Edited:
(21:45 UTC) I just took out the 'shim' on beta, it had migrated over there with the data
I agree with your assessment on the current DST adjustment, I think its a cluster-f**k issue. (having done this kind of stuff myself)
I suspect the problem is with start/stop date calculation -- or it DST fix might not be working at all  One of the problems is that the EU and GB do not have the same dates for 'Summer Time' as the U.S. I actually can't recall what we did/did not do on this



Thanks


« Last Edit: Mar 16th, 2014 at 9:54pm by JonB »  

I find your lack of faith disturbing.
Back to top
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,025
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Is the YaBBforum.com server time currently off +10
Reply #3 - Mar 16th, 2014 at 9:56pm
Post Tools
Do you remember working on this, Dandello?

I have definitely been down this road before (although ti may not have been on this forum)

Cool
  

I find your lack of faith disturbing.
Back to top
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,025
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Is the YaBBforum.com server time currently off +10
Reply #4 - Mar 16th, 2014 at 9:58pm
Post Tools
  

I find your lack of faith disturbing.
Back to top
IP Logged
 
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Re: Is the YaBBforum.com server time currently off +10
Reply #5 - Mar 16th, 2014 at 10:59pm
Post Tools
JonB wrote on Mar 16th, 2014 at 9:42pm:
I need to ask - is the time wrong both on the beta and yabbforum.com/community? They use two different codebases.

Yes, the time is wrong on both.

Dandello wrote on Mar 16th, 2014 at 9:39pm:
My bet is that the DST will auto correct when DST was supposed to kick in - we have the same problem will all our radio set clocks at home. They just didn't get the message that the date to switch over had changed.

Maybe. All my radio set clocks changed over to the correct time. One of them is about 12 years old
  
Back to top
 
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online



Posts: 2,467
Location: Earth

YaBB 2.6.1
Re: Is the YaBBforum.com server time currently off +10
Reply #6 - Mar 16th, 2014 at 11:36pm
Post Tools
JonB wrote on Mar 16th, 2014 at 9:56pm:
Do you remember working on this, Dandello?


I remember fighting with this and not really winning - what I've found is within YaBB itself some items are saved with a 'localtime' time stamp (which may or may not be UTC depending on the server and offset) and some are saved in UTC. At some point we need to get all the time calculations based on UTC.

  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,025
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Is the YaBBforum.com server time currently off +10
Reply #7 - Mar 16th, 2014 at 11:43pm
Post Tools
I guess I should have said 'is the hour wrong on both?' (LOL) , but that is moot as I now know both servers are reporting the same time.

Quote:
Having looked at DateTime.pm & Time::Local, I'd bet that the time adjustment is not working at all (unless it works 'somewhere else' as a fudge)

I see no way to get the client local TZ.


I'll e-mail or talk to you about it, Dandello.

Thanks Ron

Smiley

Edited:
Attn Elrick, please split these 'error notifications' off from this topic - to YaBB Bugs - and leave the place/move marker   Smiley

  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online



Posts: 2,467
Location: Earth

YaBB 2.6.1
Re: Is the YaBBforum.com server time currently off +10
Reply #8 - Mar 17th, 2014 at 12:10am
Post Tools
You can get the local TZ via javascript. (assuming your OS/browser allows it.)

Edited:
Also You can set your TZ in Profile and Perl does have a 'isdist' within the date/time function - but I'll have to look into how that knows what's happening.


Edited:
AHA! - The isdist function in Perl reads the time stamp/ daylight savings time on the server - and UTC always has an isdist of 0. We'll have to use Javascript to make it behave for end users.
« Last Edit: Mar 17th, 2014 at 12:53am by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,025
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Is the YaBBforum.com server time currently off +10
Reply #9 - Mar 17th, 2014 at 12:53am
Post Tools
See PM Smiley

Edited:
Quote:
AHA! - The isdist function in Perl reads the time stamp/ daylight savings time on the server - and UTC always has an isdist of 0. We'll have to use Javascript to make it behave for end users.

SAY AMEN SISTER! --

now where is my 'clapping hands' smiley/gif?.
« Last Edit: Mar 17th, 2014 at 12:57am by JonB »  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online



Posts: 2,467
Location: Earth

YaBB 2.6.1
Re: Is the YaBBforum.com server time currently off +10
Reply #10 - Mar 17th, 2014 at 2:18am
Post Tools
On the todo loist for tomorrow or so.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,025
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Re: Is the YaBBforum.com server time currently off +10
Reply #11 - Mar 17th, 2014 at 12:19pm
Post Tools
This Topic was moved here from Talk It Up! [move by] JonB.
  

I find your lack of faith disturbing.
Back to top
IP Logged
 
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Re: Is the YaBBforum.com server time currently off +10
Reply #12 - Mar 17th, 2014 at 3:46pm
Post Tools
I know you folks know this stuff WAY better than I do.

Couldn't something like this work? As I'm sure you know the code takes the time and date from the computer instead of the server

Code (Javascript)
Select All
<script>
function startTime()
{
var today=new Date();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();
// add a zero in front of numbers<10
m=checkTime(m);
s=checkTime(s);
document.getElementById('txt').innerHTML=h+":"+m+":"+s;
t=setTimeout(function(){startTime()},500);
}

function checkTime(i)
{
if (i<10)
  {
  i="0" + i;
  }
return i;
}
</script>  

  
Back to top
 
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online



Posts: 2,467
Location: Earth

YaBB 2.6.1
Re: Is the YaBBforum.com server time currently off +10
Reply #13 - Mar 17th, 2014 at 4:22pm
Post Tools
@Ron : Something like that - the tricky part is getting the Perl subroutine to read the javascript variables - haven't had time to look at that yet.

This is now an official bug so it's definitely on the todo list.
(Of course DST does work IF the server AND the user are in the same country AND the server knows what country it's in and can grab the info it needs to render localtime. And even then it still won't show the proper time in oddball locations.)
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,025
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Is the YaBBforum.com server time currently off +10
Reply #14 - Mar 17th, 2014 at 4:25pm
Post Tools
A. Yep, we plan on some javascript to get localtime in some fashion.

I'm going to leave it to Dandello as to what best suits our needs, and whether we should go for a re-write or a fix.

thanks

Wink
  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Page Index Toggle Pages: [1] 2 
Topic Tools