Skip to content
Permalink
Browse files

Correct method casing.

  • Loading branch information...
dereuromark committed Sep 24, 2014
1 parent 6424d05 commit bcbc55e5f0d53d41e638c8530576ac6388c6d0b5
Showing with 4 additions and 4 deletions.
  1. +1 −1 src/I18n/Time.php
  2. +3 −3 src/View/Helper/TimeHelper.php
@@ -191,7 +191,7 @@ public function toQuarter($range = false) {
/**
* Returns a UNIX timestamp.
*
* @return string Unix timestamp
* @return string UNIX timestamp
*/
public function toUnixString() {
return $this->format('U');
@@ -189,7 +189,7 @@ public function toUnix($dateString, $timezone = null) {
*/
public function toAtom($dateString, $timezone = null) {
$timezone = $timezone ?: date_default_timezone_get();
return (new Time($dateString))->timezone($timezone)->toATOMString();
return (new Time($dateString))->timezone($timezone)->toAtomString();
}
/**
@@ -200,9 +200,9 @@ public function toAtom($dateString, $timezone = null) {
* @return string Formatted date string
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#formatting
*/
public function toRSS($dateString, $timezone = null) {
public function toRss($dateString, $timezone = null) {
$timezone = $timezone ?: date_default_timezone_get();
return (new Time($dateString))->timezone($timezone)->toRSSString();
return (new Time($dateString))->timezone($timezone)->toRssString();
}
/**

0 comments on commit bcbc55e

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