{"id":42377,"date":"2014-09-06T20:27:31","date_gmt":"2014-09-06T20:27:31","guid":{"rendered":"https:\/\/br.wordpress.org\/support\/topic\/estou-tendo-problemas-com-a-funcao-iso8601_to_datetime\/"},"modified":"2016-08-06T01:31:22","modified_gmt":"2016-08-06T01:31:22","slug":"estou-tendo-problemas-com-a-funcao-iso8601_to_datetime","status":"closed","type":"topic","link":"https:\/\/br.wordpress.org\/support\/topic\/estou-tendo-problemas-com-a-funcao-iso8601_to_datetime\/","title":{"rendered":"Estou tendo problemas com a fun\u00e7\u00e3o iso8601_to_datetime"},"content":{"rendered":"<p>Eu estou tentando usar o iso8601_to_datetime para converter 2014-09-05T01:34:10.567Z  em um formato leg\u00edvel WP. Sem efeito.<\/p>\n<pre><code>$dateCreated = &#039;2014-09-05T01:34:10.567Z&#039;;\n$iso = iso8601_to_datetime($dateCreated);\n$date = get_date_from_gmt($iso);\necho $iso;\necho $date;<\/code><\/pre>\n<p>resultado($iso): 2014-09-05T01:34:10.567Z<br \/>\nresultado($date): 1970-01-01 00:00:00<\/p>\n<p>*UTC-3<\/p>\n<p>Estou usando essa fun\u00e7\u00e3o de forma incorreta?<\/p>\n","protected":false},"template":"","class_list":["post-42377","topic","type-topic","status-closed","hentry","topic-tag-datetime","topic-tag-iso8601","topic-tag-iso8601_to_datetime"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/42377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/42377\/revisions"}],"wp:attachment":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=42377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}