🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #70382

Re: [xnews] Timezone bug

#70382
From: Luu Tran
Date: Thu, 11 Jan 2001 01:54
57 lines
2636 bytes
ktee@_REMOVEME_chariot.net.au (Kate Martin) wrote in
<3a5ca969_4@news.chariot.net.au>: 


>I live in Adelaide Australia. We are at UTC +9:30 hours. (Currently
>10:30 for summer time.)
>
>Xnews does not send a "Date:" header from my system. (I checked with
>a sniffer.) I had presumed that it might be because xnews expects an
>integer timezone. (A _lot_ of software is unaware of half hour
>timezones.) 
>

I don't send a Date header because most sane servers will supply a Date 
header if the client software doesn't.  The less I do, the less chance 
I'll have to mess something up, right?

Now, if the server's date/time is wrong, well, that's somebody else's 
problem :)

>I am therefore at the mercy of whatever server I am connected to.
>(You will note that even my local ISP has their server set up wrong!
>It inserts UTC +10:50) Doh! :)
>

No, it inserts +1050, or 10 1/2 hr (not 10hr50min), which is correct.

>I also use a number of servers in different parts of the world.
>Again, my timestamp will reflect their server time, not my time.
>


>Your manual makes it quite clear that xnews expects an integer for
>the TZ key in xnews.ini. (I tried non-integer anyway, no success.)
>:) 
>

It would've accepted 1050. However, since it can retrieve the timezone 
info from windows (I changed my tz to adelaide and checked), it'll 
ignore what you have in xnews.ini.  The next version WILL follow what 
you set it xnews.ini.

I shouldn't call it TZ though.  It's more accurately the time zone 
offset, where

localtime = UTC + timezoneoffset / 2400.

localtime and utc are both in hours (e.g., 1:15pm=13.25)
 
sorry abt the confusion.  hope that makes sense.


-- 
  luu
author of Xnews - http://Xnews.3Dnews.net
http://Xnews.3Dnews.net/xnews.zip - http://Xnews.3Dnews.net/test/
Technical Details
Message-ID: <Xns9025B645BC786luutrangeocities@63.209.14.66>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!newshub2.rdc1.sfba.home.com!news.home.com!newsfeeder.randori.com!news.randori.com!not-for-mail
References: <3a5ca969_4@news.chariot.net.au>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9025B645BC786luutrangeocities@63.209.14.66>
Subject: Re: [xnews] Timezone bug
Date: Thu, 11 Jan 2001 01:54:20 GMT
From: luutran@geocities_.com.invalid (Luu Tran)
References: <3a5ca969_4@news.chariot.net.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!newshub2.rdc1.sfba.home.com!news.home.com!newsfeeder.randori.com!news.randori.com!not-for-mail
Newsgroups: news.software.readers
User-Agent: Xnews/4.01.10
Lines: 56
Organization: InternetConnect, Inc. - http://www.internetconnect.net/