Article View: alt.free.newsservers
Article #131023Re: Free Tera Has Gone Crazy
From: Junior
Date: Mon, 29 Nov 2010 00:26
Date: Mon, 29 Nov 2010 00:26
35 lines
2655 bytes
2655 bytes
suzeeq wrote:
> Deep Green wrote:
>> On 28/11/2010 4:52 PM, suzeeq wrote:
>>> Deep Green wrote:
>>>> In my expert opinion as a computer software engineer, nearly all
>>>> newsreaders are designed badly. What do users actually mark read?
>>>> Specific articles (not article *numbers* as parochially assigned on
>>>> some specific server) and everything-before-some-date (mark all read,
>>>> mark as read by date, etc.).
>>> But software handles things better by numbers, not by date.
>>
>> Dates ARE numbers.
>
> Different data set.
It might work if all servers added the Injection-Date or some other
standard that you could count on. The client can set the time to
anything; even back to the future.
Here's what I do to avoid those future dates.
use POSIX qw(strftime);
use Date::Parse;
my $gm_time = strftime "%a, %d %b %Y %H:%M:%S +0000 (UTC)", gmtime();
my $tm_client = str2time($hdr{Date});
my $tm_offset = time - $tm_client;
if ($tm_offset > 1 and $tm_offset < 604800) {
$hdr{Date} = strftime "%a, %d %b %Y %H:%M:%S +0000 (UTC)", gmtime($tm_client); };
The str2time function gives seconds since 1970-01-01 00:00:00 UTC.
Which is how most of the time/date calculations are done.
See: http://search.cpan.org/~gbarr/TimeDate-1.20/lib/Date/Parse.pm
Technical Details
Message-ID:
<icurvu$e48$2@tioat.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.lang.asm.20141024.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!news.mixmin.net!tioat.net!not-for-mailReferences:
<4cf25aed.2314484@news.albasani.net> <icu5cp$rjo$1@news.albasani.net> <icuhqr$njf$1@speranza.aioe.org> <icuiv7$f8l$1@news.eternal-september.org> <icukea$uqt$1@speranza.aioe.org> <icuq27$l3v$1@news.eternal-september.org>Show Full Headers
Complete Article Headers
Message-ID: <icurvu$e48$2@tioat.net> Subject: Re: Free Tera Has Gone Crazy Date: Mon, 29 Nov 2010 00:26:38 +0000 From: Junior <anonymous@not-for-mail.invalid> References: <4cf25aed.2314484@news.albasani.net> <icu5cp$rjo$1@news.albasani.net> <icuhqr$njf$1@speranza.aioe.org> <icuiv7$f8l$1@news.eternal-september.org> <icukea$uqt$1@speranza.aioe.org> <icuq27$l3v$1@news.eternal-september.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.lang.asm.20141024.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!news.mixmin.net!tioat.net!not-for-mail Newsgroups: alt.free.newsservers Lines: 35 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Mon, 29 Nov 2010 00:26:38 +0000 (UTC) Injection-Info: tioat.net; posting-host="79f0d13b9f991c37af35b593e826c53f"; mail-complaints-to="news_AT_tioat_DOT_net" User-Agent: slrn/0.9.9p1 (Linux) X-Usenet-Filter: Cleanfeed http://www.mixmin.net/cleanfeed/ X-Usenet-System: InterNetNews (INN) https://www.isc.org/software/inn X-Original-Bytes: 2426