This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6005] New: Date doesn't show 1 day before if it's about to change timezone
- From: "shinden at linux dot pl" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 30 Mar 2008 23:12:55 -0000
- Subject: [Bug libc/6005] New: Date doesn't show 1 day before if it's about to change timezone
- Reply-to: sourceware-bugzilla at sourceware dot org
Date show time off by 1 hour, if at previous day it's was timezone change. E.g.:
sh@hoth:~/ > date
Mon Mar 31 00:43:49 CEST 2008
sh@hoth:~/ > date -d '1 day ago'
Sat Mar 29 23:43:47 CET 2008
sh@hoth:~/ > date -d '2 hours ago'
Sun Mar 30 22:44:58 CEST 2008
sh@hoth:~/ > date --version
date (GNU coreutils) 6.10
But, if it's past 01:00 day after timezone change, it shows correct time:
sh@hoth:~/ > date
Mon Mar 31 01:35:00 CEST 2008
sh@hoth:~/ > date -d '1 day ago'
Sun Mar 30 00:35:02 CET 2008
I can see in logs that timezone was changed at 2:00 to 3:00. This is glibc-2.7.
Older glibc (2.3.5) and coreutils (5.2.1) doesn't have this bug.
It looks like it internally change date at midnight, not 2:00. It should display
missing hour according to timezone.
--
Summary: Date doesn't show 1 day before if it's about to change
timezone
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: shinden at linux dot pl
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6005
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.