FIREFLYFANS.NET CENTRAL

Requested Time Zone Support Now Active

POSTED BY: HAKEN
UPDATED: Sunday, September 22, 2002 17:07
SHORT URL:
VIEWED: 6876
PAGE 1 of 1

Friday, August 30, 2002 2:17 PM

HAKEN

Likes to mess with stuffs.


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  |  TOP  |  HOME  

Friday, August 30, 2002 2:31 PM

GUANTES


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  |  TOP  |  HOME  

Friday, August 30, 2002 2:42 PM

HAKEN

Likes to mess with stuffs.


And for those of you who have daylight savings time, you will have to adjust accordingly.

NOTIFY: Y   |  REPLY  |  REPLY WITH QUOTE  |  TOP  |  HOME  

Saturday, August 31, 2002 5:15 AM

SHUGGIE


Seems to work everywhere apart from the linear board is that intended?

Shug

NOTIFY: Y   |  REPLY  |  REPLY WITH QUOTE  |  TOP  |  HOME  

Saturday, August 31, 2002 5:27 AM

SHUGGIE


Testing notification

Shug

NOTIFY: Y   |  REPLY  |  REPLY WITH QUOTE  |  TOP  |  HOME  

Saturday, August 31, 2002 9:25 AM

TINYTIMM


This is a test and example.


Jeff
Who is showing off for lovely young lady in chat

NOTIFY: Y   |  REPLY  |  REPLY WITH QUOTE  |  TOP  |  HOME  

Saturday, August 31, 2002 9:48 AM

HAKEN

Likes to mess with stuffs.


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  |  TOP  |  HOME  

Saturday, August 31, 2002 11:19 AM

HAKEN

Likes to mess with stuffs.


The linearboard now has time zone support as well.

NOTIFY: Y   |  REPLY  |  REPLY WITH QUOTE  |  TOP  |  HOME  

Saturday, August 31, 2002 11:56 PM

SHUGGIE


Thanks Haken - you're a star!

Shug

NOTIFY: Y   |  REPLY  |  REPLY WITH QUOTE  |  TOP  |  HOME  

Sunday, September 1, 2002 1:41 PM

ZICSOFT


Quote:

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.


So how do I edit my profile? When I go to my profile page, there don't seem to be any edit buttons.

NOTIFY: Y   |  REPLY  |  REPLY WITH QUOTE  |  TOP  |  HOME  

Sunday, September 1, 2002 3:43 PM

HAKEN

Likes to mess with stuffs.


Really? The edit profile option is on the left, under profile options. You really don't see that?

NOTIFY: Y   |  REPLY  |  REPLY WITH QUOTE  |  TOP  |  HOME  

Monday, September 2, 2002 8:39 AM

ZICSOFT


Quote:

Originally posted by Haken:
Really? The edit profile option is on the left, under profile options. You really don't see that?

I see a big black box with the label "Profile Options" but nothing in it.

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  |  TOP  |  HOME  

Monday, September 2, 2002 8:45 AM

HAKEN

Likes to mess with stuffs.


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  |  TOP  |  HOME  

Monday, September 2, 2002 8:58 AM

HAKEN

Likes to mess with stuffs.


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  |  TOP  |  HOME  

Monday, September 2, 2002 9:27 AM

TINYTIMM


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  |  TOP  |  HOME  

Monday, September 2, 2002 9:52 AM

ZICSOFT


Quote:

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.

I do have cookies enabled. Tried logging out and logging in -- didn't help.

NOTIFY: Y   |  REPLY  |  REPLY WITH QUOTE  |  TOP  |  HOME  

Monday, September 2, 2002 10:11 AM

HAKEN

Likes to mess with stuffs.


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  |  TOP  |  HOME  

Monday, September 2, 2002 11:13 AM

HAKEN

Likes to mess with stuffs.


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  |  TOP  |  HOME  

Monday, September 2, 2002 11:14 AM

HAKEN

Likes to mess with stuffs.


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  |  TOP  |  HOME  

Monday, September 2, 2002 11:51 AM

ZICSOFT


Quote:

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.

Nope, still can't. I'd remove the quotes from my tag, but ...

NOTIFY: Y   |  REPLY  |  REPLY WITH QUOTE  |  TOP  |  HOME  

Monday, September 2, 2002 12:02 PM

HAKEN

Likes to mess with stuffs.


Read the next message.

NOTIFY: Y   |  REPLY  |  REPLY WITH QUOTE  |  TOP  |  HOME  

Monday, September 2, 2002 12:15 PM

HAKEN

Likes to mess with stuffs.


Try it now. BTW, the tagline now supports quotes.

NOTIFY: Y   |  REPLY  |  REPLY WITH QUOTE  |  TOP  |  HOME  

Monday, September 2, 2002 12:44 PM

ZICSOFT


Quote:

Originally posted by Haken:
Try it now. BTW, the tagline now supports quotes.

OK, fixed. I'm a little suprised you don't support DST. Your server is Windows NT, right? Shouldn't be that hard.

NOTIFY: Y   |  REPLY  |  REPLY WITH QUOTE  |  TOP  |  HOME  

Monday, September 2, 2002 12:56 PM

HAKEN

Likes to mess with stuffs.


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  |  TOP  |  HOME  

Monday, September 2, 2002 3:44 PM

ZICSOFT


Quote:

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.

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  |  TOP  |  HOME  

Tuesday, September 3, 2002 3:00 AM

HAKEN

Likes to mess with stuffs.


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  |  TOP  |  HOME  

Tuesday, September 3, 2002 6:33 AM

ZICSOFT


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  |  TOP  |  HOME  

Tuesday, September 3, 2002 7:54 AM

SHUGGIE


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  |  TOP  |  HOME  

Tuesday, September 3, 2002 9:53 AM

HAKEN

Likes to mess with stuffs.


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  |  TOP  |  HOME  

Tuesday, September 3, 2002 11:00 AM

GUANTES


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  |  TOP  |  HOME  

Tuesday, September 3, 2002 11:12 AM

HAKEN

Likes to mess with stuffs.


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  |  TOP  |  HOME  

Tuesday, September 3, 2002 11:53 AM

GUANTES


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  |  TOP  |  HOME  

Tuesday, September 3, 2002 12:00 PM

HAKEN

Likes to mess with stuffs.


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  |  TOP  |  HOME  

Friday, September 20, 2002 5:27 PM

JASONZZZ



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  |  TOP  |  HOME  

Sunday, September 22, 2002 5:07 PM

JASONZZZ




Haken:

I am really beginning to think that there
has got to be more than one of you!

Good Grief, with as much tv as you watch,
where do you actually find the time to do
all of this programming?!


NOTIFY: Y   |  REPLY  |  REPLY WITH QUOTE  |  TOP  |  HOME  

YOUR OPTIONS

NEW POSTS TODAY

USERPOST DATE

OTHER TOPICS

DISCUSSIONS
Flaw in the poll for President on home page here.
Tue, November 5, 2024 04:26 - 4 posts
Made in Taiwan
Wed, September 18, 2024 04:03 - 18 posts
Pallette of fonts?
Thu, April 21, 2022 22:56 - 2 posts
Getting thrown off whenever I try to post
Sat, December 18, 2021 14:58 - 10 posts
Shiny Universe Updates on Twitter
Thu, September 2, 2021 13:07 - 8 posts
PIRATENEWS Why?
Sun, January 14, 2018 01:57 - 63 posts
Site back up
Tue, September 5, 2017 23:04 - 1 posts
Site just got back up.
Thu, June 15, 2017 18:39 - 3 posts
malware threat here?
Mon, March 21, 2016 13:09 - 11 posts
Is anyone else having trouble updating their sigantures?
Mon, November 16, 2015 01:12 - 16 posts
Time for new software.
Fri, June 26, 2015 10:04 - 5 posts
Missing link
Thu, February 6, 2014 12:53 - 2 posts

FFF.NET SOCIAL