Article View: news.software.nntp
Article #65421Re: Timezone problem
From: DS
Date: Wed, 21 May 2003 22:05
Date: Wed, 21 May 2003 22:05
65 lines
3471 bytes
3471 bytes
"�p�� �mGHC�n" <@netvigator.com> wrote in news:3ecc95b6$1@lungfunggdn.org: > Dear All, > > I have a problem related to Time Zone. It is because some reader post > in a different time zone other than ours, therefore, sometimes their > time is almost 8 hours behind. As you may know, most ppl like to sort > the articles by time. If this problem occurs, some article may be > ignored by most viewer. Is there any method to force the system change > the article's time zone to server's one? > > Regards, > Michael > Michael, I just wanted to thank you for posting this question. It is something I did not account for in the newsreader I am coding. Now to ask the admins. I'm sure the answer to this is no, but, would it be acceptable, in my client, to display the date/time referenced to the user's timezone ? Currently, I'm not using the GMT difference part of the time/date stamp field. I see several possibilities: 1) Do nothing and don't worry about it. 2) Alter the date field in my database file's to be in reference to one time zone, either the user timezone or GMT. This is the easiest coding solution with the fewest 'trickle down' effects. When receiving a header 'dataset' it's parsed into it's relevant field's then stuff into the database, so it's just a couple more line's of code to add to the processing. or 3) Leave the date/time data alone in the database and make the timezone difference adjustment's only when I'm displaying the data. Doing the adjustment for display-only purposes may sound easy. I currently store the message size as a long integer, as it comes from the XOVER data, and upon a request to display the header, it takes the size number from the database and formats it into x Bytes, x.x KBytes, or x.x MBytes, and this string info is passed to be displayed. This solution is much more difficult to implement though. Is the yyyymmdd hhmmss -(+)x GMT a standard time/date format ? If not, I would have to then add another field in the group database to store the GMT adjustment, AND additional processing to display it. I can't even think of how to sort this. Well maybe, I could instead of storing the GMT adjustment, just add a DB field for GMT of each message and during XOVER, calculate and store the GMT of each message. This field would never be displayed, but used only for sorting on time/date. If I had to implement a solution, this would probably be it. Any opinions ? Regards, DS
Technical Details
Message-ID:
<Xns9382B800D1F1Cidispcom@24.48.107.54>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!logbridge.uoregon.edu!router1.news.adelphia.net!news1.news.adelphia.net.POSTED!not-for-mailReferences:
<3ecc95b6$1@lungfunggdn.org>Show Full Headers
Complete Article Headers
Message-ID: <Xns9382B800D1F1Cidispcom@24.48.107.54> Subject: Re: Timezone problem Date: Wed, 21 May 2003 22:05:02 GMT From: DS <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t> References: <3ecc95b6$1@lungfunggdn.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!logbridge.uoregon.edu!router1.news.adelphia.net!news1.news.adelphia.net.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: Home User-Agent: Xnews/5.04.25 Lines: 64 NNTP-Posting-Host: 68.71.194.138 X-Complaints-To: abuse@adelphia.net X-Trace: news1.news.adelphia.net 1053554702 68.71.194.138 (Wed, 21 May 2003 18:05:02 EDT) NNTP-Posting-Date: Wed, 21 May 2003 18:05:02 EDT