Skip to content

Commit

Permalink
Correct method casing.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Sep 24, 2014
1 parent 6424d05 commit bcbc55e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/I18n/Time.php
Expand Up @@ -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');
Expand Down
6 changes: 3 additions & 3 deletions src/View/Helper/TimeHelper.php
Expand Up @@ -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();
}

/**
Expand All @@ -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();
}

/**
Expand Down

0 comments on commit bcbc55e

Please sign in to comment.