Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Topic started by: NukeWorker.com on July 11, 2004, 10:39:46 PM

Title: daylight savings time
Post by: NukeWorker.com on July 11, 2004, 10:39:46 PM
Option to enable / disable daylight savings time for users/forum.
Title: Re: daylight savings time
Post by: Amacythe on July 12, 2004, 02:36:35 AM
this is a GREAT idea.
Title: Re: daylight savings time
Post by: dschwab9 on July 12, 2004, 02:21:21 PM
Isn't that controlled by the server?
Title: Re: daylight savings time
Post by: Oldiesmann on July 12, 2004, 05:25:38 PM
Basically, they want an optional checkbox to adjust the time for daylight savings time (ie "Check this box if daylight savings time is in effect"). As long as it works better than the thing in vBulletin, I'm all for it. (Long story short about the vBulletin comment - one of the boards I post on occasionally is a vBulletin board, and it took me forever to get it to display the correct time when Daylight Savings Time took effect this past spring. I am in the Eastern Time zone, which is GMT -5. So, just turn on the daylight savings correction setting and the correct time should be displayed, right? Wrong. I ended up playing with the settings for 20 minutes before I got it working right. I ended up having to turn off the DST correction altogether (vB has three settings - off, auto and on) and setting my time zone to GMT -3 before the correct time was displayed.
Title: Re: daylight savings time
Post by: NukeWorker.com on July 12, 2004, 05:30:39 PM
Sounds like more trouble than its worth...
Title: Re: daylight savings time
Post by: Amacythe on July 12, 2004, 08:32:47 PM
Oldiesmann, you are correct.

A simple checkbox that tells the software that on a certain day each year, decrease the time offset for the member; and on another day each year, increase that time offset.  I live in Arizona and I do not have daylight savings time; however, most others do, and they always ask if the board is supposed to update or if they have to edit their profiles.

I suppose that this might be a problem for those who have servers that also are on daylight savings times, so actually there would need to be two check boxes, one in the member profile, and one in board settings.
Title: Re: daylight savings time
Post by: Peter Duggan on July 13, 2004, 03:23:11 AM
Quote from: Amacythe on July 12, 2004, 08:32:47 PM
A simple checkbox that tells the software that on a certain day each year, decrease the time offset for the member; and on another day each year, increase that time offset.

It's not really that simple, because different servers in different countries can go on/off daylight saving time on different dates! So various daylight saving time features have been requested and discussed before, but they always run into the same brick wall in the end...
Title: Re: daylight savings time
Post by: Vinoth on July 13, 2004, 04:36:30 AM
Tough job,  but the fruits that come out really does have an great taste/

as said by peter,  you can't make out an server.
Title: Re: daylight savings time
Post by: Grudge on July 13, 2004, 04:38:32 AM
SpecHackers, I've always wondered why you end so many sentances with a '/'

Is it a language thing??

On topic - as this has been said above this is actually more complicated than it sounds. It depends on which region people are in, and where the server is. I guess it would be possible to change the time offset to "pick a region" (Like windows does on its time offset) and then use it from there - but that's a lot of language entries :P
Title: Re: daylight savings time
Post by: Burpee on July 13, 2004, 07:41:19 AM
Quote from: Grudge on July 13, 2004, 04:38:32 AM
SpecHackers, I've always wondered why you end so many sentances with a '/'

Is it a language thing??

I think it's because his / is right next to his Enter key :D

Quote from: Grudge on July 13, 2004, 04:38:32 AM
On topic - as this has been said above this is actually more complicated than it sounds. It depends on which region people are in, and where the server is. I guess it would be possible to change the time offset to "pick a region" (Like windows does on its time offset) and then use it from there - but that's a lot of language entries :P

Language entries?
You mean timezone entries? There's only 24 of those, right?

Also... I googled and found this (http://www.phpbuilder.com/columns/ehresman20030911.php3).. dunno if there's some usable solutions on there... just thought I'd mention the link :P
Title: Re: daylight savings time
Post by: Cypher7 on July 13, 2004, 07:57:26 AM
Quote from: Burpee on July 13, 2004, 07:41:19 AM
Quote from: Grudge on July 13, 2004, 04:38:32 AM
SpecHackers, I've always wondered why you end so many sentances with a '/'

Is it a language thing??

I think it's because his / is right next to his Enter key :D

Yea I'm glad I'm not the only one to wonder about this!!  I though it was hit by mistake instead of fullstop!?

Oh yea, eh sorry I've no input on the daylight savings thing! :P
Title: Re: daylight savings time
Post by: Oldiesmann on July 13, 2004, 02:00:38 PM
I wasn't thinking of something complex that would "automatically" change the time on a certain date. Basically, I was thinking of something like this:

[ ] Check this box if daylight savings time is enabled

If the box is checked, SMF would add 1 to the user's time offset every place that the time offset is accessed.
Title: Re: daylight savings time
Post by: Peter Duggan on July 13, 2004, 02:02:08 PM
Wouldn't it be just as easy for the user to change his/her time offset as check that box? ???
Title: Re: daylight savings time
Post by: Oldiesmann on July 13, 2004, 02:21:57 PM
Yes it would, but I think a lot of people would find it convenient...
Title: Re: daylight savings time
Post by: [Unknown] on July 14, 2004, 02:04:42 AM
But servers automatically change their time, so then you get problems like the one you described with that vBulletin forum.

-[Unknown]
Title: Re: daylight savings time
Post by: Peter Duggan on July 14, 2004, 05:14:43 AM
Quote from: [Unknown] on July 14, 2004, 02:04:42 AM
But servers automatically change their time

Shouldn't matter for Oldiesmann's suggestion from Reply #11, but I still stand by my Reply #12!
Title: Re: daylight savings time
Post by: [Unknown] on July 14, 2004, 06:04:23 AM
Yes, it would... watch:

Time is 2:00 AM.

Server applies/removes/whatever daylight savings time to make it 3:00 AM.
SMF applies/removes/whatever daylight savings time according to this member's prudent change the previous night - it is now 4:00 AM.

Time is 4:00 AM.

-[Unknown]
Title: Re: daylight savings time
Post by: Peter Duggan on July 14, 2004, 06:49:45 AM
Oh, OK, I see what you mean! ;)
Title: Re: daylight savings time
Post by: NukeWorker.com on July 14, 2004, 08:58:56 AM
Does Server adjust for DST? Y/N
Does User adjust for DST? Y/N
If sDST = Y and uDST = Y then nothing
If sDST = Y and uDST = N then adjust
If sDST = N and uDST = Y then adjust
if sDST = N and uDST = N then nothing

For christs sake, it isn't rocket science.
Title: Re: daylight savings time
Post by: Peter Duggan on July 14, 2004, 09:07:26 AM
Quote from: NukeWorker.com on July 14, 2004, 08:58:56 AM
Does Server adjust for DST? Y/N

Does the user know if it does?
Does the user know when it does?

(Remember different countries change on different dates)

Quote
Does User adjust for DST? Y/N
If sDST = Y and uDST = Y then nothing
If sDST = Y and uDST = N then adjust
If sDST = N and uDST = Y then adjust
if sDST = N and uDST = N then nothing

For christs sake, it isn't rocket science.

Perhaps not, but it's not the piece of cake you're implying either!