bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in 'date -d': timezone trouble


From: PF
Subject: Bug in 'date -d': timezone trouble
Date: Wed, 12 Sep 2007 00:31:14 -0700

Hi..

% date -d "07-09-10 10:45:43"
Mon Sep 10 10:45:43 PDT 2007

% date -d "07-09-10 10:45:43 + 1 minute"
Mon Sep 10 03:45:43 PDT 2007

% date -d "07-09-10 10:45:43 PDT + 1 minute"
Mon Sep 10 10:46:43 PDT 2007

The date -d option is taking the time in the local time zone except when
you add time to it, when it reverts to GMT.  Explicitly mentioning the
timezone is a workaround.

Version of date (GNU coreutils): 5.97

Thanks!

-- 
PF <address@hidden>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]