I am having issues with iso8601_to_datetime Function, help me
-
I am trying to use the iso8601_to_datetime to convert 2014-09-05T01:34:10.567Z into a WP readable format. No effect.
$dateCreated = '2014-09-05T01:34:10.567Z'; $iso = iso8601_to_datetime($dateCreated); $date = get_date_from_gmt($iso); echo $iso; echo $date;
result($iso): 2014-09-05T01:34:10.567Z
result($date): 1970-01-01 00:00:00*UTC-3
Am I using this function incorrectly?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘I am having issues with iso8601_to_datetime Function, help me’ is closed to new replies.