Article View: news.software.nntp
Article #8725timezone/clock wrong script running
From: Dave Barr
Date: Mon, 24 Jun 1996 00:00
Date: Mon, 24 Jun 1996 00:00
105 lines
4848 bytes
4848 bytes
I decided to start up my negarrive a script again. I ran it several
months ago for a few days.
The script takes articles which arrive at my news server and compares
the converted GMT date of the article's posting date ("Date:" header)
with the current GMT time. If the time difference is more than 1 hr
and 1 minute too fast (negative), and the person hasn't been sent a
reply in the past month, a warning/explanatory message is sent.
The template of the message is included at the end of this message.
This is normally due to the fact the the system has an incorrectly
configured timezone, but also it could be the fact that the clock
is way off.
With more and more PC's joining the net, there's an ever-increasing
problem of postings whose Date: header doesn't accurately reflect
when the article was composed/posted. This has subtle but significant
effect on software such as news statistics gathering, as well as
news reader accuracy.
The last time I ran this, reponse from admins was mostly positive.
General response ranged from "thanks" to a few angry threats. Most of
the negative reaction was a result of ignorance on what the problem
really is and how the script works. (the biggest being responses
of the form "but you're in a different timezone than me, so of course
the time is different!". Duh.)
Note that this script only addresses the case where the clock/timezone
drift is "ahead", but hopefully sending out these warnings will
generate enough pressure on newsreader authors and others to correct
their software.
Here's the template below. The From: address is intentionally made
into a comment to deal with broken mail software which sends bounces
to the From: address instead of the envelope. (the envelope is
set to "nobody@math.psu.edu" which is an alias for /dev/null)
From: (usenet@math.psu.edu)
To: $from
Subject: clock too fast/timezone wrong
This is an automatically generated message. You should
get this message only once. (Unless you change your From: line,
which is saved for one month to weed out duplicate messages.)
You are getting this message because you posted to Usenet
an article with an incorrect Date:. The Message-ID of this article
is $msgid .
This article was posted with a Date: header of:
Date: $date_h
Which converted to GMT is $tdate_p
However, it arrived on this system on $tdate_a
which is EARLIER than the posted date by $warpm hours.
In other words, the article said it was posted $warpm hours
AFTER it got here.
This could mean one of several things:
1. Your system clock is set wrong.
2. Your system's timezone information is set wrong.
3. Your system's timezone and clock is correct, but your news software is
configured incorrectly. (it either doesn't get the timezone correctly
from the system, or didn't convert it to a correctly formatted date)
Why should you care?
1. Lots of statistics generated by Usenet sites relies on the Date:
header to provide a fairly accurate representation of the time the
article was posted. If this time is wrong, the statistics are wrong.
2. It can be confusing to people who read Usenet. News readers usually
sort articles by date. If this date is wrong, then the sorting will be
wrong. Articles may be read out of their normal chronological sequence,
even if your newsreader performs threading.
What should you do?
That depends a lot on your system, and what the problem is. I suggest
forwarding this message to your local support staff, news administrator,
or system administrator. They should be able to diagnose and
correct the problem.
If you are using a PC-based newsreader, first check your own
environment. Is your system clock correct? PC clocks often
do not automatically adapt to daylight savings time. You should
also check the time-zone configuration in your newsreader *as
well as* whether you set the TZ variable in your AUTOEXEC.BAT.
SET TZ=-0500
If you are five hours behind GMT.
It's possible that due to an incorrectly formatted or forged From: address
you are getting this message in error. I apologize if this is the case.
Thanks for your cooperation.
v1.2
--Dave
Technical Details
Message-ID:
<4qmkpk$jqf@augusta.math.psu.edu>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!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <4qmkpk$jqf@augusta.math.psu.edu> Subject: timezone/clock wrong script running Date: Mon, 24 Jun 1996 00:00:00 +0000 From: barr@math.psu.edu (Dave Barr) 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!not-for-mail X-Deja-AN: 161878467 Organization: Penn State University, Department of Mathematics Newsgroups: news.admin.misc,news.software.readers,news.software.nntp