123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|599|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> TimeCheck

Thu, 27 Jul 2017, 14:03
Jayenkai

TimeCheck


I'm posting this at 21:03 on Thursday 27 July 2017. GMT
Is the time accurate on your display?
What time does your screen say??!

-=-=-
''Load, Next List!''
Thu, 27 Jul 2017, 14:07
steve_ancell
It displays Posted : Friday, 28 July 2017, 15:03 - Mark Unread
Thu, 27 Jul 2017, 14:08
Jayenkai
Hmm.. That's in the future.

What time does your PC think it is?!

-=-=-
''Load, Next List!''
Thu, 27 Jul 2017, 14:16
GfK
Says the right time, here.
Thu, 27 Jul 2017, 14:18
Jayenkai
Either something's wrong with Steve's PC's clock, or something's wrong with my automated time-sync javascript code.
For some reason, the site's set Steve's time offset to +25 hours!
A very bizarre thing for it to do.

-=-=-
''Load, Next List!''
Thu, 27 Jul 2017, 14:19
GfK
I'd hazard a guess that it's your code since there's no timezone on earth where it's currently 25 hours ahead of BST!
Thu, 27 Jul 2017, 14:20
Jayenkai
Sure there is.. Tomorrowland!!
Thu, 27 Jul 2017, 14:37
Jayenkai
OK, double checked everything and did a little tweaking. Let me know if that fixes it, Steve.. (And/or breaks it further!!)

-=-=-
''Load, Next List!''
Thu, 27 Jul 2017, 14:42
GfK
Mine now says October 21st 1955. GREAT SCOTT!!

(not really).
Thu, 27 Jul 2017, 15:14
cyangames
How are you syncing your timers?

I normally retireve the server time, offset for geolocation, then bung that in javascript and use a 999ms interval function to manipulate it by a second each run though. Works pretty well for countdowns, etc.

-=-=-
Web / Game Dev, occasionally finishes off coding games also!
Thu, 27 Jul 2017, 15:19
rockford
Time appeared right for me.
Thu, 27 Jul 2017, 15:21
Jayenkai
Day of the month * 24 + hour
It compares (javascript on your side) your current system time against the server's time, and if they're different it requests an update via a background request.
It's only an hourly resolution. Nothing minute or second specific. But it shouldn't be 25 hours out!!

-=-=-
''Load, Next List!''
Thu, 27 Jul 2017, 16:10
steve_ancell
At the moment my PC clock is 2310

|update| -=-=- |update|
I don't know what you adjusted but date and time here are now correct.
Thu, 27 Jul 2017, 16:37
GfK
Shit it's 293 years fast!
Thu, 27 Jul 2017, 16:42
steve_ancell
LOL I just noticed I forgot to put in a semicolon.