bug-coreutils
[Top][All Lists]
Advanced

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

Re: [bug #21455] date --date "" "+test" fails ONLY WITHIN CERTAIN TIME P


From: Bob Proulx
Subject: Re: [bug #21455] date --date "" "+test" fails ONLY WITHIN CERTAIN TIME PERIOD #$%^%
Date: Mon, 29 Oct 2007 21:43:07 -0600
User-agent: Mutt/1.5.13 (2006-08-11)

Philip Rowlands wrote:
> I hacked up the following to avoid resetting my system clock all over 
> the place:

I have found the FakeTime Preload Library to be very useful for these
things.  Let me recommend it as an alternative to setting the system
time.  Perhaps you will find it useful too.

  http://www.code-wizards.com/projects/libfaketime/

It allows useful tests such as this to be performed completely in user
space.

  LD_PRELOAD=./libfaketime.so.1 FAKETIME="2007-10-28 01:00:00" date -u -R
  Sun, 28 Oct 2007 01:00:00 +0000

> Smells like a DST issue, are we in a DST change?

Agreed.

> $ zdump -v Europe/Paris
> ...Very nice analysis trimmed...

That was a very nice job of analysis.

Bob




reply via email to

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