Skip to content

Commit 3b4fbea

Browse files
author
Pete Nelson
committed
Fixes Instagram date format issue
1 parent b7336d1 commit 3b4fbea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "supercool/fetch",
33
"description": "A field type to embed video for Craft CMS",
44
"type": "craft-plugin",
5-
"version": "1.0.0",
5+
"version": "1.0.1",
66
"keywords": [
77
"craft",
88
"cms",

src/services/Fetch.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public function get($url, $scripts = true)
207207
{
208208
if (isset($matches[4]))
209209
{
210-
$decodedJSON['date'] = DateTime::createFromString($matches[4]);
210+
$decodedJSON['date'] = \DateTime::createFromFormat(DATE_ATOM,$matches[4]);
211211
}
212212
}
213213
}

0 commit comments

Comments
 (0)