Bug#343237: Incorrect timestamp generated after daylight savings time ends

Joachim Breitner nomeata at debian.org
Tue Dec 13 21:20:47 UTC 2005


Hi,

thanks for the bugreport. I'm not sure, though, that this can be fixed
easily, without Timezone difference information in the syslog. Imagine a
log with only one entry from these two hours - Parse::Syslog would not
not have a chance to get it right.

To me, this seems like a broken by design case, but I'm open for
suggestions.

Greetings,
Joachim Breitner from the Debian Perl Group


Am Dienstag, den 13.12.2005, 16:02 -0500 schrieb Anthony DeRobertis:
> Package: libparse-syslog-perl
> Version: 1.03-1
> Severity: normal
> 
> Our syslog near the end of October this year looks like this:
> 
> Oct 30 01:59:53 ivr3 bayonne: dx(8): play
> Oct 30 01:59:58 ivr3 bayonne: dx(8): step ffff sleep(%timeout)
> Oct 30 01:59:58 ivr3 bayonne: dx(8): sleep
> Oct 30 01:00:00 ivr3 CROND[6946]: (root) CMD (/usr/lib/sa/sa1 1 1) 
> Oct 30 01:00:00 ivr3 CROND[6947]: (root) CMD (/usr/local/bin/runtsync) 
> Oct 30 01:00:04 ivr3 bayonne: dx(8): step ffff set(%warning,%noinput)
> 
> Parse::Syslog doesn't correctly handle the second 1AM. Instead, it warps
> the time backwards! That is, if you paste the above into the following:
> 
> perl -MParse::Syslog -e 'my $p = new Parse::Syslog("/dev/stdin", arrayref => 1); while ($arr = $p->next) { print "$arr->[0]\n" }'
> 
> You get:
> 
> 1130651993
> 1130651998
> 1130651998
> 1130648400
> 1130648400
> 1130648404
> 
> When it finally hits this line:
> 
> Oct 30 02:00:00 ivr3 CROND[7083]: (root) CMD (/usr/lib/sa/sa1 1 1) 
> 
> it manages to spit out a correct time stamp again, 1130655600.
> 
> -- System Information:
> Debian Release: 3.1
>   APT prefers stable
>   APT policy: (500, 'stable'), (99, 'unstable')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.14-2-686-smp
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> 
> Versions of packages libparse-syslog-perl depends on:
> ii  perl                          5.8.4-8    Larry Wall's Practical Extraction 
> 
> libparse-syslog-perl recommends no packages.
> 
> -- no debconf information
> 
> 
> _______________________________________________
> pkg-perl-maintainers mailing list
> pkg-perl-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-perl-maintainers

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: joachimbreitner at amessage.de | http://people.debian.org/~nomeata





More information about the pkg-perl-maintainers mailing list