Linux date authentication time between ubuntu and centos

The following steps on my Ubuntu machine

$ date -d 2014-07-23T00: 00Z

ons Jun 23, 2014 2:00:00 AM CEST

While centos is running on another machine, I get

$ date -d 2014-07-23T00: 00Z

date: invalid date `2014-07-23T00: 00Z '

From launch

date --version

I see that the version of gnu coreutils is 8.21 on Ubuntu and 8.4 on centos machine.

My question is this: is it due to differences in the functionality of the date, what is happening, or is it due to something else (for example, a language with which I played a little without success)?

If this is due to differences in date functionality, where can I read about these updates?

+4
source share
1

NEWS file:

* Noteworthy changes in release 8.13 (2011-09-08) [stable]

[..trim..]

** New features

  date now accepts ISO 8601 date-time strings with "T" as the
  separator.  It has long parsed dates like "2004-02-29 16:21:42"
  with a space between the date and time strings.  Now it also parses
  "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
  variants like "2004-02-29T16:21:42.333-07:00"

, , GNU Coreutils 8.13 .

, , : -)

+1

All Articles