[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in daylight-saving?
From: |
Pavel Riha |
Subject: |
bug in daylight-saving? |
Date: |
Tue, 29 Mar 2005 00:14:13 +0200 |
User-agent: |
Mutt/1.5.6i |
#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.
(address@hidden)$ date --version
date (coreutils) 5.0
Autoři: David MacKenzie
(address@hidden)~$ 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 in daylight-saving?,
Pavel Riha <=