#13547 closed (fixed)
Date format character c does not conform to ISO 8601
| Reported by: | jl6 | Owned by: | nobody |
|---|---|---|---|
| Component: | Template system | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The documentation for the now and date built-in filters claims that the "c" format character produces a date in ISO 8601 format, i.e. 1996-01-01T12:05:25, but it actually outputs a space instead of the "T" separator. This means that, for example, it cannot be used in the datetime attribute of an HTML5 time element.
Attachments (1)
Change History (4)
comment:1 by , 15 years ago
| milestone: | 1.3 → 1.2 |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
(In [13266]) Fixed #13547 -- Made sure the ISO 8601 date formatting introduced in r12058 uses "T" as the separator between the date and the time value to increase real world usefulness.
While the ISO standard permits the use of a space instead of "T" for readability, it does have an impact on standards like HTML5 which rely on specific rules made in RFC 3339.
While ISO 8601 doesn't state that it requires the "T" separator to actual form a meaningful combination of a date and a time value, I see your point with regard to real world usefulness. As long as there are no objections I'd like to fix this before we release 1.2, too. Refs #7262 and r12058.