Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#3375 branch 'hotfix/ho…
Browse files Browse the repository at this point in the history
…tfix/iso8601-factrion-of-seconds'
  • Loading branch information
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/Reader/Extension/Atom/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

namespace Zend\Feed\Reader\Extension\Atom;

use DateTime;
use DOMDocument;
use DOMElement;
use stdClass;
use Zend\Feed\Reader;
use Zend\Feed\Reader\Collection;
use Zend\Feed\Reader\Extension;
use Zend\Stdlib\DateTime;
use Zend\Uri;

/**
Expand Down Expand Up @@ -175,7 +175,7 @@ public function getDateCreated()
}

if ($dateCreated) {
$date = DateTime::createFromFormat(DateTime::ISO8601, $dateCreated);
$date = DateTime::createFromISO8601($dateCreated);
}

$this->data['datecreated'] = $date;
Expand Down Expand Up @@ -203,7 +203,7 @@ public function getDateModified()
}

if ($dateModified) {
$date = DateTime::createFromFormat(DateTime::ISO8601, $dateModified);
$date = DateTime::createFromISO8601($dateModified);
}

$this->data['datemodified'] = $date;
Expand Down
6 changes: 3 additions & 3 deletions src/Reader/Extension/Atom/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

namespace Zend\Feed\Reader\Extension\Atom;

use DateTime;
use DOMElement;
use Zend\Feed\Reader;
use Zend\Feed\Reader\Collection;
use Zend\Feed\Reader\Extension;
use Zend\Stdlib\DateTime;
use Zend\Uri;

/**
Expand Down Expand Up @@ -125,7 +125,7 @@ public function getDateCreated()
}

if ($dateCreated) {
$date = DateTime::createFromFormat(DateTime::ISO8601, $dateCreated);
$date = DateTime::createFromISO8601($dateCreated);
}

$this->data['datecreated'] = $date;
Expand Down Expand Up @@ -153,7 +153,7 @@ public function getDateModified()
}

if ($dateModified) {
$date = DateTime::createFromFormat(DateTime::ISO8601, $dateModified);
$date = DateTime::createFromISO8601($dateModified);
}

$this->data['datemodified'] = $date;
Expand Down
4 changes: 2 additions & 2 deletions src/Reader/Extension/DublinCore/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

namespace Zend\Feed\Reader\Extension\DublinCore;

use DateTime;
use Zend\Feed\Reader;
use Zend\Feed\Reader\Collection;
use Zend\Feed\Reader\Extension;
use Zend\Stdlib\DateTime;

/**
* @category Zend
Expand Down Expand Up @@ -222,7 +222,7 @@ public function getDate()
}

if ($date) {
$d = DateTime::createFromFormat(DateTime::ISO8601, $date);
$d = DateTime::createFromISO8601($date);
}

$this->data['date'] = $d;
Expand Down
4 changes: 2 additions & 2 deletions src/Reader/Extension/DublinCore/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

namespace Zend\Feed\Reader\Extension\DublinCore;

use DateTime;
use Zend\Feed\Reader;
use Zend\Feed\Reader\Collection;
use Zend\Feed\Reader\Extension;
use Zend\Stdlib\DateTime;

/**
* @category Zend
Expand Down Expand Up @@ -231,7 +231,7 @@ public function getDate()
}

if ($date) {
$d = DateTime::createFromFormat(DateTime::ISO8601, $date);
$d = DateTime::createFromISO8601($date);
}

$this->data['date'] = $d;
Expand Down

0 comments on commit 7968e2e

Please sign in to comment.