Skip to content

PHP ISO8601 date format #3

@patwork

Description

@patwork

Hi,

There's a small problem with dates with ISO8601 format from PHP. When date is formatted with DATE_ISO8601 format, CuteTime's regexp can't recognize it. That's because:

date(DATE_ISO8601) => "Y-m-d\TH:i:sO" => eg. "2004-02-12T15:19:21+0000" - notice lack of ":" in timezone.

source: http://php.net/manual/en/function.date.php

ps. date('u') is working fine, but it's PHP5+ only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions