Forums

RS-Linkify Thread is sticky

Quick find code: 261-262-33-65181208

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
Toastcrumbs said :
Also Indy, Linkify doesn't take into the DST change in the UK.

This post by Keighlea says 18:02 for me, it was actually 17:02. :o


Looking into it now

edit:
Version 3.0.3.1 should display the times correctly. Damn time zones punish me, it was out by a day thus not accounting for the forums using BST. I'm hoping I have future proofed this until the year 2020.

30-Mar-2014 08:41:51 - Last edited on 30-Mar-2014 09:18:29 by Indecent Act

Maz
Nov Member 2016

Maz

Posts: 6,590 Rune Posts by user Forum Profile RuneMetrics Profile
^ I was actually about to ask about that..

The forums seem to display the time 1 hour ahead of what it actually is if you've converted the times to local time. Instead of having to focus on the time zones and DST couldn't you just make Linkify show the same time as your computer shows instead, if "local time" is checked?

~Maz~
“Just because you aren't paranoid doesn't mean they aren't after you.”
Maz

30-Mar-2014 09:36:39

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
@Maz,

I'll use your post as an example

showing the default forum time (convert to local time off)
http://puu.sh/7Pezl.jpg

All javascript can do is apply my timezone offset to that time. But if I apply my offset UTC/GMT +11 hours it's an hour out (that's actually why RS Linkify was out by an hour)

I need to determine if the forums are using BST or GMT then add either zero or one hour to the users offset to display forum times in local time.

In javascript all offsets work from UTC/GMT, they are not relative to the web page.

What I'm now doing is looking between the last Sunday of March and the last Sunday of October, if the current date falls between those two dates it BST so one hour added to offset else nothing is added.

This should hold out for next few years and eliminate this recent issue. I was hard coding the dates before but as seen I was out by a day :/

30-Mar-2014 10:00:43

Toastcrumbs

Toastcrumbs

Posts: 5,801 Rune Posts by user Forum Profile RuneMetrics Profile
Indecent Act said :
it was out by a day thus not accounting for the forums using BST.


That might be the fact that I'm GMT+12... I'm exactly 12 hours ahead of the forums... 13 hours when on DST. lol

E: Unless... Indy got the dates wrong -runs around shouting "the world is ending!"-

30-Mar-2014 21:17:10 - Last edited on 30-Mar-2014 21:19:12 by Toastcrumbs

Quick find code: 261-262-33-65181208 Back to Top