Skip to content
Permalink
Browse files

Use created object to access ATOM constant

  • Loading branch information...
bcrowe committed Nov 12, 2013
1 parent e85e033 commit 68f2f8a1ea9c7bf08f486e3d995661951d1af4cd
Showing with 2 additions and 2 deletions.
  1. +1 −1 Cake/Test/TestCase/Utility/TimeTest.php
  2. +1 −1 Cake/Utility/Time.php
@@ -562,7 +562,7 @@ public function testToServer() {
*/
public function testToAtom() {
$dateTime = new \DateTime;
$this->assertEquals($dateTime->format(DATE_ATOM), $this->Time->toAtom(time()));
$this->assertEquals($dateTime->format($dateTime::ATOM), $this->Time->toAtom(time()));
}
/**
@@ -650,7 +650,7 @@ public static function toServer($dateString, $timezone = null, $format = 'Y-m-d
public static function toAtom($dateString, $timezone = null) {
$dateTime = new \DateTime;
return $dateTime->setTimestamp(static::fromString($dateString, $timezone))
->format(DATE_ATOM);
->format($dateTime::ATOM);
}
/**

0 comments on commit 68f2f8a

Please sign in to comment.
You can’t perform that action at this time.