The option specific output of date command has changed from RHEL7 to RHEL8

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 7, 8
  • coreutils-8.30, coreutils-8.22

Issue

  • The output of date -uIseconds command in RHEL 7 :
2020-12-02T14:22:27+0000
  • The output of the same command in RHEL 8 :
2020-12-02T14:22:33+00:00
  • Is this documented in the Release notes etc ?

Resolution

  • This change has been documented in the man pages of date , use following command to view the complete manual.
$ info coreutils 'date invocation'

Root Cause

This is one of behaviour changes introduced in coreutils-8.30 shipped with RHEL 8 vs. coreutils-8.22 as of RHEL 7. See corresponding announcement in coreutils Changelog:

    Noteworthy changes in release 8.26 (2016-11-30)
    ...

        Changes in behavior
        ...
        date --iso-8601 now uses +00:00 timezone format rather than +0000.
        The standard states to use this "extended" format throughout a timestamp.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments