🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #6182

Displaying dates in the timezone of the reader

#6182
From: Markus.Zellner
Date: Sun, 31 Jul 1994 12:23
22 lines
2147 bytes
I have hacked on nn6.5beta, and managed to get it to display "Date"
headers in terms of GMT. I used the parsedate code from INN and altered the
article header display routines. My ultimate goal is to display the posting
date of an article in terms of the reader's timezone. 

Why do I want to do this ? I have found that as a news administrator
that calculating the posting date of the article gives an indication of
article propagation, which is useful in determining our Usenet flows. 
As a user of news, displaying the posting date lets me know whether it
is worth replying to an article that contains questions that may already
have been answered by posts that have not arrived at our site. 

What I plan to do is to make changes to nn so that a variable in the
init file determines whether the Date header is displayed as is, or
converted to the timezone of the reader.  I am not happy with the way I
have changed the code, and the article header display code is a bit
impenetrable to me.  I am looking for some detailed hints about the best
way to do the changes I propose.  Any help from people who have
experience hacking the nn article display code would be appreciated. 

-- 
Markus Zellner | PhD student | Markus.Zellner@cs.anu.edu.au
Technical Details
Message-ID: <mwz.775655009@cs.anu.edu.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!hookup!europa.eng.gtefsd.com!howland.reston.ans.net!vixen.cso.uiuc.edu!uwm.edu!msuinfo!harbinger.cc.monash.edu.au!newshost.anu.edu.au!dubhe.anu.edu.au!cs.anu.edu.au!mwz

Show Full Headers
Complete Article Headers
Message-ID: <mwz.775655009@cs.anu.edu.au>
Subject: Displaying dates in the timezone of the reader
Date: Sun, 31 Jul 1994 12:23:43 +0000
From: Markus.Zellner@cs.anu.edu.au
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!hookup!europa.eng.gtefsd.com!howland.reston.ans.net!vixen.cso.uiuc.edu!uwm.edu!msuinfo!harbinger.cc.monash.edu.au!newshost.anu.edu.au!dubhe.anu.edu.au!cs.anu.edu.au!mwz
Newsgroups: news.software.nn
Organization: Department of Computer Science, Australian National University
Lines: 22
Sender: mwz@cs.anu.edu.au
Reply-To: Markus.Zellner@cs.anu.edu.au
NNTP-Posting-Host: talitha.anu.edu.au
Keywords: nn, timezone
X-Newsreader: NN version 6.5.0 #6