#info date
>When a relative item causes the resulting date to cross a boundary
>where the clocks were adjusted, typically for daylight-saving time,
>the resulting date and time are adjusted accordingly.

I use `date -d yesterday +%F` in my shell script to obtain the day of
yesterday. The script is run in 0:00 every day for backup logs.

today (2005-03-28 0:00) there was a problem, that it returned 2005-03-26 !
instead of 2005-03-27

I think, it is because of the time change (27.3. was the daylight-saving
day).

according to the info page (see above), it should be bug.


excuse my miserable english, I hope it's though understandable.


([EMAIL PROTECTED])$ date --version
date (coreutils) 5.0
Autoři: David MacKenzie
([EMAIL PROTECTED])~$ uname -a
Linux aragorn 2.4.27 #1 So říj 9 09:51:42 CEST 2004 i686 Intel(R)
Celeron(R) CPU 1.70GHz GenuineIntel GNU/Linux



Pavel
-- 
Pavel Riha
======================================================================
Zaslouží-li člověk pochvaly, dbejte, abyste mu ji neodepřeli.
                -- Ruskin


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to