GNU bug report logs - #6642
Date manipulation is not working after patching our Centos 4.8 server

Previous Next

Package: coreutils;

Reported by: "Sandoval, Juan" <JSandoval <at> corp.untd.com>

Date: Thu, 15 Jul 2010 21:30:03 UTC

Severity: normal

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bob Proulx <bob <at> proulx.com>
To: "Sandoval, Juan" <JSandoval <at> corp.untd.com>
Cc: 6642 <at> debbugs.gnu.org
Subject: bug#6642: Date manipulation is not working after patching our Centos 4.8 server
Date: Thu, 15 Jul 2010 22:20:20 -0600
Sandoval, Juan wrote:
> vhost01.dca.int: ~ % /usr/local/gnu/bin/date --date "7 days + 11-jul-2010"
> /usr/local/gnu/bin/date: invalid date `7 days + 11-jul-2010'

Thank you for the report.  Often here I might say something to the
effect that I can't recreate the problem.  But in this case I can't
recreate the success!  As far as I know that isn't the accepted
syntax.  It should be the other way around.  This would work for
example.

  date --date "11-jul-2010 + 7 days"

> However it works fine on our other server that we have not patched yet.
> 
> vhost01.vgs.int: ~ % % /usr/local/gnu/bin/date  --date "7 days + 11-jul-2010"
> Sun Jul 18 00:00:00 PDT 2010

Who am I to dispute an example such as that!

What are the versions of those two different date commands?

  /usr/local/gnu/bin/date --version

Is this a version of the coreutils that you compiled yourself or from
some other source?  GNU is all about the source.

Thanks

Bob




This bug report was last modified 13 years and 275 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.