What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » Forum & Website » Enable DST Correction:

Enable DST Correction:
Author: Message:
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Enable DST Correction:
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:

This post was edited on 03-30-2004 at 05:05 AM by WDZ.
03-29-2004 09:50 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Enable DST Correction: - by Choli on 03-29-2004 at 01:10 PM
RE: Enable DST Correction: - by Johnny_Mac on 03-29-2004 at 02:03 PM
RE: Enable DST Correction: - by Choli on 03-29-2004 at 02:18 PM
RE: Enable DST Correction: - by Johnny_Mac on 03-29-2004 at 02:21 PM
RE: Enable DST Correction: - by WDZ on 03-29-2004 at 07:50 PM
RE: Enable DST Correction: - by Tochjo on 03-29-2004 at 09:29 PM
RE: Enable DST Correction: - by Choli on 03-29-2004 at 09:30 PM
RE: Enable DST Correction: - by Chrono on 03-29-2004 at 09:39 PM
RE: Enable DST Correction: - by WDZ on 03-29-2004 at 09:50 PM


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