Bug 13176 - The date applet incorrectly forms ISO8601 values for UTC
Summary: The date applet incorrectly forms ISO8601 values for UTC
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.31.x
Hardware: All Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-28 23:47 UTC by mrjoel
Modified: 2020-11-28 20:46 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mrjoel 2020-08-28 23:47:54 UTC
When requested to generate a UTC date in the ISO 8601 format with a time component included, an incorrect zone offset suffix is used.

When ran as "date --utc -Iseconds" (or hours/minutes), a formatted value is generated which includes "UTC" as the timezone suffix which is non-compliant with the standard as a timezone designator. Either of a "Z" or "+00:00" suffix would work.

Instead of the incorrect:
    2020-08-28T23:46:55UTC

Should generate one of the correct values as:
    2020-08-28T23:46:55Z
    2020-08-28T23:46:55+00:00
Comment 1 Denys Vlasenko 2020-11-28 20:46:03 UTC
Fixed in git