Version: 1.00, by Paul
Developer Last Online: Nov 2023
Version: 2.2.x
Rating:
Released: 08-10-2002
Last Update: Never
Installs: 11
No support by the author.
The following hack will add Daylight Saving Time support to your forums. When used on a server that automatically adjusts its time for Daylight Saving Time, vBulletin's time will be off by one hour when displaying the times for users outside of those areas observing DST. A rather nasty quirk that usually gets those overseas and in places that don't observe DST a little ticked off on my forums.
This hack allows the individual user to select whether or not they would like times on your forum to be displayed in DST or not and allows you to specify from the Admin CP whether or not your server is automatically changing the time for DST. At the moment, it only supports the DST supported by your server and returned by your server (via the date() function's "I" flag). I do not know what will happen if this code is used on servers with locales outside of the US. I assume this would work equally well for EU servers.
There are significant file edits made for this hack. Please ensure that you backup your database and files before attempting to install this hack.
Edit: I forgot to mention that enabling DST support will add an hour to events that take place ONLY during those periods where DST apply (i.e. posts made in December in a US locale will not be affected).
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
05-13-03 at 02:45 AM Smoothie said this in Post #29 another question, users in Sydney Australia say this doesn't work for them. Any reason why? Damn, I hate DST.
This hack is dependent on the dst settings for the server. If your server is not located in Australia or set to an Australian locale, it will not adjust for Australian DST. vBulletin3 is supposedly going to properly handle this.
05-13-03 at 02:16 AM Smoothie said this in Post #28 Having a slight problem, and I know all edits and queries were done correctly. In the user cp, the radio buttons for Use Daylight Saving Time, neither are selected. When I select yes, and click submit modifications, when i go back to my user cp, neither one is selected again.
I have no idea. Try restoring your files from backup and reapplying the hack. Note that this hack was written for 2.2.6 and may or may not be compatible with 2.3.0. I'm not sure if the instructions are still valid.
A poster earlier in the thread reported the same problem, but later found his mistake. Perhaps you could contact him to see if he remembers what happened in his case.
the thing is, if I go to my admin cp, and find any user, the radio button for DST is selected, but if i go to my user cp, it is not. I applied the code changes twice, same results.
This is *not* working for me at all. My server is based in Norway, I'm trying to view the forums from the East Coast of the US, and the time is the SAME (an hour behind) whether I click no or yes! Help me!
This hack relies on the "i" flag of the date function. Please see the instructions in the first post. It's likely that your server in Norway is not configured with a North American locale and therefore will not work with this hack.