[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: date -d yesterday fails after daylight saving
From: |
Paul Eggert |
Subject: |
Re: date -d yesterday fails after daylight saving |
Date: |
Mon, 29 Mar 2004 14:23:20 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Piotr PiÄ…tkowski <address@hidden> writes:
> But having 'date +%y%m%d -d yesterday' called just after midnight on
> march 28 and 29, I've got the same date (040327) due to daylight saving
> time shift.
I couldn't reproduce this bug with coreutils 5.2.1. I set
TZ=Europe/Warsaw in the environment and set the simulated current time
to 1080512250 (Mon Mar 29 00:17:30 CEST 2004). I ran 'date +%y%m%d -d
yesterday' and got the expected output 040328.
There have been some changes in that area since 4.5.3 so perhaps the
bug has been fixed since then.