Shoutbox

Enable DST Correction: - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: General (/forumdisplay.php?fid=11)
+---- Forum: Forum & Website (/forumdisplay.php?fid=13)
+----- Thread: Enable DST Correction: (/showthread.php?tid=23176)

Enable DST Correction: by Choli on 03-29-2004 at 01:10 PM

I've just had to change the dst setting in user cp. Couldn't it be set automaticly? I think coding that in PHP is easy (for WDZ) and maybe that would be one sql query less (i dunno)...

btw, the dst should be enabled from the 1:00 am (GMT) of sunday of last weekend of march to 1:00 am (GMT) of sunday of last weekend of october.


RE: Enable DST Correction: by Johnny_Mac on 03-29-2004 at 02:03 PM

quote:
Originally posted by Choli
btw, the dst should be enabled from the 1:00 am (GMT) of sunday of last weekend of march to 1:00 am (GMT) of sunday of last weekend of october.
Surely this depends on where you are in the world? In the USA its the first sunday of April, not the last in March. A lot of work for a simple check of a box twice a year. :rolleyes:
RE: Enable DST Correction: by Choli on 03-29-2004 at 02:18 PM

quote:
Originally posted by Johnny_Mac
Surely this depends on where you are in the world? In the USA its the first sunday of April, not the last in March
do people in usa use dst? I thought dst was only used in europe :rolleyes: well, In that case why is the change day there other day than in europe?
quote:
Originally posted by Johnny_Mac
A lot of work for a simple check of a box twice a year.
|-) you have to go to user cp, edit options, scroll down, select the option and click update.. too much work.... j/k :P
RE: Enable DST Correction: by Johnny_Mac on 03-29-2004 at 02:21 PM

Me and WDZ discussed this the other day in the s/b. :P

Its used in Canada and USA, and Europe mainly. However I do believe its used in other countries... Possibly NZ?

I have no idea why they're different dates. Maybe a snoop about this stie will help. :P

http://wwp.greenwichmeantime.com/home.htm


RE: Enable DST Correction: by WDZ on 03-29-2004 at 07:50 PM

DST is different in many countries... I think it would actually be quite difficult to code auto-correction, though I've never tried... :p

BTW, I've never seen it done on other forums either... :p


RE: Enable DST Correction: by Tochjo on 03-29-2004 at 09:29 PM

quote:
Originally posted by WDZ
BTW, I've never seen it done on other forums either... :p
I believe vBulletinBoard can automatically adjust it :o
RE: Enable DST Correction: by Choli on 03-29-2004 at 09:30 PM

quote:
Originally posted by WDZ
DST is different in many countries... I think it would actually be quite difficult to code auto-correction, though I've never tried...
i understand you
quote:
Originally posted by WDZ
BTW, I've never seen it done on other forums either...
one more reason to add it :P : MyBB, the first forums with auto-dst setting :lol: j/k
RE: Enable DST Correction: by Chrono on 03-29-2004 at 09:39 PM

we have dst here too :P
Maybe if we had the possibility to choose when the time will change on the forums..
cause i had to change the time last week :P


RE: Enable DST Correction: by WDZ on 03-29-2004 at 09:50 PM

quote:
Originally posted by Tochjo
I believe vBulletinBoard can automatically adjust it :o
What version? I'm pretty sure 2.3.x can't...

Edit: Looks like vB 3 has the feature... it uses Javascript... :lol:

http://www.vbulletin.com/forum/archive/index.php/t-72234

I guess that makes sense, because it's the only way to get the the user's time offset automatically...

code:
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}

:dodgy: