daylight savings time

Started by NukeWorker.com, July 11, 2004, 10:39:46 PM

Previous topic - Next topic

NukeWorker.com

Option to enable / disable daylight savings time for users/forum.

Amacythe


dschwab9

Isn't that controlled by the server?

Oldiesmann

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.

NukeWorker.com

Sounds like more trouble than its worth...

Amacythe

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.

Peter Duggan

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...

Vinoth

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.
Vinoth And Sachin ( SpecHackers Team )
The Best  Way to Help Poor Is not Becoming One Of Them.

Grudge

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
I'm only a half geek really...

Burpee

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.. dunno if there's some usable solutions on there... just thought I'd mention the link :P

Cypher7

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

Oldiesmann

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.

Peter Duggan

Wouldn't it be just as easy for the user to change his/her time offset as check that box? ???

Oldiesmann

Yes it would, but I think a lot of people would find it convenient...

[Unknown]

But servers automatically change their time, so then you get problems like the one you described with that vBulletin forum.

-[Unknown]

Peter Duggan

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!

[Unknown]

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]

Peter Duggan

Oh, OK, I see what you mean! ;)

NukeWorker.com

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.

Peter Duggan

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!

Advertisement: