The date_format_patterns() function seems to implement the ISO date format 'c' specifier, but it's missing from date_format_date(). The attached patch file applies this fix to version 6.x-2.2.

CommentFileSizeAuthor
date_api.module.patch595 bytesDaniel Norton

Comments

karens’s picture

Status: Needs review » Fixed

Fixed an easier way, just add 'c' to the list of formats that get normal treatment.

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

bluestarstudios’s picture

did you also have the problem that "c" displays the ISO duplicated? I posted about it here: #736828: ISO 8601 "c" displays duplicate