Carbon ISO8601 wrong format

Created on 13 Jun 2016  路  1Comment  路  Source: briannesbitt/Carbon

This method is retuning an atom date format instead of ISO8601

https://github.com/briannesbitt/Carbon/blob/ecc98cd7efcfc15058b20a5d49caa1e8ae5ab8a3/src/Carbon/Carbon.php#L1147

  public function toIso8601String()
    {
        return $this->toAtomString();
    }

Most helpful comment

http://php.net/manual/en/class.datetime.php#datetime.constants.iso8601

_Note: This format is not compatible with ISO-8601, but is left this way for backward compatibility reasons. Use DateTime::ATOM or DATE_ATOM for compatibility with ISO-8601 instead._

>All comments

http://php.net/manual/en/class.datetime.php#datetime.constants.iso8601

_Note: This format is not compatible with ISO-8601, but is left this way for backward compatibility reasons. Use DateTime::ATOM or DATE_ATOM for compatibility with ISO-8601 instead._

Was this page helpful?
0 / 5 - 0 ratings