Requested Time Zone Support Now Active
POSTED BY: Haken
UPDATED: Monday, September 23, 2002 03:07
VIEWED: 8636
PAGE 1 of 1
Okay, took me a while because of all the other stuff I was working on for the website, but I finally finished the Time Zone routines for the message board.
Simply edit your profile and set the Time Zone for your geographical location.
Again, this is for messages and whereever a reference to messages appear. News, Articles, etc. is still the server time (GMT -10), which is also the default of all users unless it's changed.
Please let me know if you run into problems or if weird things start happening.
This feature was orginally requested by Shuggie.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Umm based on Haken's request here is a short test message......
Ummmm...... Testing, testing, 1-2-3!
Hi!
Phil
"I'm not ashamed. It's the computer age. Nerds are in. They're still in, right?" -Willow
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
And for those of you who have daylight savings time, you will have to adjust accordingly.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Seems to work everywhere apart from the linear board is that intended?
Shug
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Testing notification
Shug
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
This is a test and example.
Jeff
Who is showing off for lovely young lady in chat
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Quote:
Originally posted by Shuggie:
Seems to work everywhere apart from the linear board is that intended?
Oops.
I forgot. Adding it later on today.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
The linearboard now has time zone support as well. 
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Thanks Haken - you're a star!
Shug
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Quote:So how do I edit my profile? When I go to my profile page, there don't seem to be any edit buttons.
Originally posted by Haken:
Okay, took me a while because of all the other stuff I was working on for the website, but I finally finished the Time Zone routines for the message board.
Simply edit your profile and set the Time Zone for your geographical location.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Really? The edit profile option is on the left, under profile options. You really don't see that?
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Quote:I see a big black box with the label "Profile Options" but nothing in it.
Originally posted by Haken:
Really? The edit profile option is on the left, under profile options. You really don't see that?
Also, is there a simple general way to call up my profile? The only one I can find is to look for a thread with one of my posts, and then click on my own name.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
On each page, on the upper left hand corner, you will see your username. Does it say Zicsoft?
To get to your profile through a roundabout way, you can go to the Community Page and click on View Visitors.
To All:
Do any of you have the same problem and can't get to your profile to edit?
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
I think I know what the problem is.
You will need to login and have cookies enabled in order to have the edit profile option show up. See if that works.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Sorry Haken,
Just tried to edit my profile to GMT -4, no luck.
And I still can't edit my tagline.
Went in under "My Firefly" "Edit Profile" submited, got dead page. Went back, no change.
Jeff
Who understands the degree of difficulty.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Quote:I do have cookies enabled. Tried logging out and logging in -- didn't help.
Originally posted by Haken:
I think I know what the problem is.
You will need to login and have cookies enabled in order to have the edit profile option show up. See if that works.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Hmmm...I'm toally baffled now. What browser are you two using? I'll try and match configuration on my end to test.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Okay, figured out the problem. It's the quotes in your tagline. I suspect that is the cause of Zicsoft's problem as well. It's been fixed, so try it.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
It's the quote marks in your tagline that's probably causing the problem. TinyTimm has the same thing, so with both of you having similar problems, I was able to locate the bug. Try it now and let me know if you can edit your profile.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Quote:Nope, still can't. I'd remove the quotes from my tag, but ...
Originally posted by Haken:
It's the quote marks in your tagline that's probably causing the problem. TinyTimm has the same thing, so with both of you having similar problems, I was able to locate the bug. Try it now and let me know if you can edit your profile.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Read the next message.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Try it now. BTW, the tagline now supports quotes.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Quote:OK, fixed. I'm a little suprised you don't support DST. Your server is Windows NT, right? Shouldn't be that hard.
Originally posted by Haken:
Try it now. BTW, the tagline now supports quotes.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
We're not just talking about the US. I didn't even know that there was DST in London until Guantes told me about it when we were testing. So unless there's a database somewhere that I can use that specifically says what countries use DST, it can get quite complicated to implement.
BTW, Hawaii doesn't have DST for obvious reasons.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Quote:Obvious reasons?
Originally posted by Haken:
We're not just talking about the US. I didn't even know that there was DST in London until Guantes told me about it when we were testing. So unless there's a database somewhere that I can use that specifically says what countries use DST, it can get quite complicated to implement.
BTW, Hawaii doesn't have DST for obvious reasons.
My point is that NT has built-in time zone support. You feed it a GMT time and some kind of time zone designation and it does the rest -- including daylight savings adjustment.
http://msdn.microsoft.com/library/en-us/sysinfo/base/time.asp
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Obvious reason meaning we have year round sunshine here. One could say that we have only one season--Summer. Though, it does rain a bit more during Winter. The other State in the US that has the same is Arizona, and they too does not have DST.
As for the Time Zone support in Windows, that's only for the local server/computer. The particular function that does the task is GetTimeZoneInformation and is usually used to retrieve information on the current time zone of the server/computer.
I wish it was as simple as passing the API a GMT offset and getting accurate time zone info for the offset, but it doesn't work that way simply because not every location within a time zone has DST.
So, really, there's no easy way to implement DST other than to let the user manually adjust it.
But for theory's sake, if letting the user adjust is not an option, then the way I would approach it is to build a database of time zone info for the various States (and Counties) in the US (Hawaii and Arizona does not have DST and Indiana belongs in three different time zones and not all zones have DST). That's just the US alone. Not too complicated if we just make adjustments for the mentioned exceptions.
But on a global scale, you can see how complicated it can get with all the different countries and their respective counties, provinces, prefectures, and whatnot. To complicate matters, the start and end dates of DST around the world are all different.
Take a look at this:
http://webexhibits.org/daylightsaving/g.html
You may ask, well, some of that info must be somewhere on the computer because the computer takes care of it. And it is--for most States and countries. It's stored in the registry. And that's probably where I would start if I were to add auto DST support. If you want to take a look in the registry, it's here:
HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/Time Zones
For NT, XP, etc..look under CurrentVersion.
But really, it's an overkill for the website. Besides, as extensive as the list is in the registry, it's neither complete nor totally accurate and is provided as general time zone support. Note that this is also where the API gets its info.
I would also have to obtain the location of the user to make use of the time zone info by querying the database to return with the correct DST data. Simply passing a GMT offset doesn't work in obtaining DST for a particular locale.
So, the point of all this is that while auto DST support is fairly simple to implement for the US, the same cannot be said when the rest of the world is taken into account. That pretty much sucks, doesn't it?
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
I'm not about to suggest that you maintain your own time zone database. I've actually worked on documentation for such databases, and it's even more complicated than you think it is. Check out this map:
http://aa.usno.navy.mil/faq/docs/world_tzones.html
Note that some countries use half-hour offsets. And southern hemisphere DST is backwards from northern.
So the only practical thing is to use a standard database. I was under that NT provided a way to use its database in code, but perhaps I'm mistaken. You can always download the TZ database and convert it to your purposes, but I suppose that's rather a lot of work for one small feature:
http://www.twinsun.com/tz/tz-link.htm
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
I work in Tech Support for the Ingres RDBMS (which you've probably never heard of) and I know what a headache DST can be. Our product has good support for both timezones and DST but even so it can still be confusing[1].
If the functions aren't available in the database/language you're using then you it's much easier to implement a straight offset and leave it at that.
Personally I think if DST had been invented after computers became commonplace it would have had a much harder time getting accepted.
Shug
[1] Right now some of you are thinking 'Confusing? it's really straightforward what's he on about?' am I right? Trust me it can get complicated real quick.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Quote:
Originally posted by Shuggie:
I work in Tech Support for the Ingres RDBMS (which you've probably never heard of)
Actually, I've worked with Ingres at my part time job on campus when I was in school. It ran on a couple of DEC mainframes. I've also worked with ADABASE and MTRIEVE, probably another couple that many in the PC World haven't heard of.
About the Time Zone database, it's good to know, thanks Zicsoft.
Perhaps not really within the scope of this website, but one of the things I've been dreaming about creating as a result of our little discussion on DST is perhaps a way for the website to ID and log the geographical location of visitors based on their IP addresses. Something in the line of VisualRoute, but not as fancy.
http://visualroute.visualware.com/
That combined with the Time Zone database, it might be a worthwhile research project to pursue. Though not too practical in the sense that IP addresses are arbitrarily allocated and there is no connection between an IP address and it's physical location.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
I'm all for the whole manual change or get over it idea.... I've got mine set to GMT even tho I'm not quite on it for the moment, but couldn't you add a "+DST", "-DST" and "No DST" check or radial button on the options to add or subtract the hour between set dates?
Like assume DST is between two fixed dates for everyone and have the extra hour shoved on for us in the North and taken off for those in the South. That way no database of places is needed since people can select it if they want DST.
Just a thought that might simplify the whole issue, maybe!
Phil
"I'm not ashamed. It's the computer age. Nerds are in. They're still in, right?" -Willow
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
I thought about doing that at first, but then it became a matter of what was simpler:
1. Have the user update his time zone info twice a year by clicking a single box?
OR
2. Have a bunch of boxes he has to click and fill out. Besides with the start and end date fields, many don't even know when DST starts and ends in their region.
From a customer service/support point of view, it's easily apparent as to which solution to go with.
I'm not a web designer. I don't know how to build fancy websites like the pros with their web teams directed by focus groups. I do, however, believe that form follows function and that a website should be more than just eye candy--it should be functional. It should do something and allow users to access content quickly. I try to take a shotgun approach. Wham Bam and you're out. So, from that perspective, the simplest solution is always the best solution. That's the only way I can do this by myself. 
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Hey, I'm with you!
I'm dig free over here! No acusations or what-not, just as a programmer myself I tend to try and figure solutions out myself.... Just thinking aloud!
Phil
"I'm not ashamed. It's the computer age. Nerds are in. They're still in, right?" -Willow
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Quote:
Originally posted by Guantes:
Just thinking aloud!
Think aloud all you want.
I do that quite often myself. Sometimes I even solve problems faster if I do. Kinda like that episode of ST:TNG where Wesley Crusher figures out how to use the Enterprise's tractor beam to push an astroid.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME
Talking about Wesley Crusher...
http://www.wilwheaton.net/
Quote:
Originally posted by Haken:Quote:
Originally posted by Guantes:
Just thinking aloud!
Think aloud all you want.I do that quite often myself. Sometimes I even solve problems faster if I do. Kinda like that episode of ST:TNG where Wesley Crusher figures out how to use the Enterprise's tractor beam to push an astroid.
NOTIFY: Y | REPLY | REPLY WITH QUOTE | PERMALINK | TOP | HOME