Daylight Saving Time Support
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.
See https://vborg.vbsupport.ru/showthrea...threadid=25879 for more information about DST support in vBulletin.
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).
|