What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » Forum & Website » [split] Daylight savings time bug

[split] Daylight savings time bug
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
O.P. RE: Daylight savings! :banana:
quote:
Originally posted by WDZ
This is the key sentence.
hmmm, so??? In fact, it should encourage you, making this the first board which integrates DST correctly!! :undecided:

Seriously, there is nothing complicated with it.

Instead of storing 10am when DST is on, store 11am.
If DST is off then store 10am (as useuall):

And also remove the DST calculation for when the times are calculated when you view posts!...

When the posttimes are stored:
code:
posttime = "10:00"
IF DST = on Then
  posttime = posttime + 1
End If
It is as simple as this....



In fact, all this makes that the calculation for converting the times to the localtime of the reader is made much simpler (and slightly faster, cause DST settings doesn't need to be looked anymore when people view threads).



(PS: the key sentence should be: you can't change dates/times in the past, unless you have the timemachine from professor Barabas -dutch people know what I'm talking about :p-)

This post was edited on 11-01-2004 at 07:12 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-01-2004 07:06 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On