Antville Project

antville & Timezones

i've been working on a new weblog-preference for specifying the timezone of a weblog. now it basically works, there's just one question i'd like to discuss: should we store timestamps in antville's database in GMT or keep it like it is (= local time)?

first options means that not only are timestamps in the database stored in GMT but also the appserver (just Helma, not the server) itself must run in GMT (specified in server.properties, specifying the timezone in apps.properties has no effect) - which means that every other app using the same Helma-installation is forced to adjust time according to a specified timezone itself.

second option means that antville will have to do a bit more of time-calculating (calc local time from DB back to GMT and then use the offset according to the specified timezone).

i tend to store timestamps in database in GMT, although this means that antville would get another default-property (the timezone of an antville-installation). and all existing timestamps in database must be converted to GMT. what ya think?

comment    

 
tobi, February 13, 2002 at 10:35:45 AM CET

no strong opinion on that one

but to give at least some feedback i would consider the second option as my favourite one.

link  


... comment
 
DNess, February 13, 2002 at 8:32:05 PM CET

A (very) good question

You are quite right to spend some time thinking about how this should be handled. And, having dealt with the problem for many years at TVGuide---where we had to worry about timezones a lot---I am confident that there is no `right' answer. But there are some wrong ones.

For example, I think it is wrong in the current Antville to not show `zone'. I guessed that the time was probably UTC but I think for clarity it should always be shown.

My personal preference is to show the time in the timezone of the Writer, if you are able to determine that. I say this because the one useful inference I make from `time' is, for example, that messages written at 0300 may have a different tenor than those written at 1200 or 1800. If you can't show timezone of the writer then either UTC or the timezone of the reader is ok. From a storage standpoint, I guess I'd store in UTC and keep the TZ of the writer as an offset.

link  

 
robert, February 13, 2002 at 9:02:14 PM CET

well

my question above was indeed more about the storage, but you mentioned some interesting points. determining the timezone of the writer is (nearly) impossible, and i'm not sure about this being the best way to do. what i'm trying to implement in antville is the ability to switch a whole antville-log into a different timezone (different from the tz of the server). but you're right, displaying the timezone of the weblog is necessary (actually, the timezone of antville is "Europe/Vienna" (GMT+1))

link  


... comment
 
DNess, February 15, 2002 at 7:08:35 PM CET

Further note ...

[I couldn't figure out how to attach this to the `reply' immediately above, so I added it as a new comment.]

I understand that it might be difficult to know the time zone of the writer, but most conventional EMail seems to do it pretty well (most EMail that I get shows up with Date/Time followed by something like -0500 to indicate Eastern Standard Time) so I'd have naively guessed that you could get your hands on local time' when someone was making an entry. But I don't know enough to know' that for sure.

I don't quite understand the `switch the whole Weblog' problem though. I'd be interested if you could explain it a bit more...

link  


... comment


The Antville Server Fund has been a great success. Thanks to everybody who contributed!
online for 8550 Days
last updated: 1/4/11, 10:22 AM
status
Youre not logged in ... Login
menu
November 2024
SunMonTueWedThuFriSat
12
3456789
10111213141516
17181920212223
24252627282930
July
recent
zfuture's house here is zfuture's
house
by zfuture (7/31/03, 2:59 AM)
i understand your concerns however,
i hardly can think of a solution. certainly, if the...
by tobi (7/29/03, 9:47 AM)
Found several more similar sites
listed This is getting to be quite a concern to...
by cobalt123 (7/27/03, 7:56 PM)
Second Post Alert on Referrer
bug livecatz I put this into "help" and now here:...
by cobalt123 (7/26/03, 7:14 PM)
well it's not easy to
find from here, anyway. think we should include a link,...
by tobi (7/24/03, 11:25 AM)
So finally I found
the helma Bugzilla - stupid me.
by mdornseif (7/24/03, 10:28 AM)
clock not that it's particularly
earthshattering but the antclock is running slow by about 15...
by kohlehydrat (7/23/03, 8:25 PM)
but blogosphere.us isn't can't really
be rated as spam can it?
by kohlehydrat (7/23/03, 8:08 PM)
More referrer spam www.webfrost.com
by Irene (7/23/03, 7:55 PM)
How to log skin names
I accessed to console?? Hi, I would like to know...
by winson (7/23/03, 4:12 PM)

Click here to get an XML version of this weblog.

Made with Antville
powered by
Helma Object Publisher