Browse Source

Correct method casing.

euromark 11 years ago
parent
commit
bcbc55e5f0
2 changed files with 4 additions and 4 deletions
  1. 1 1
      src/I18n/Time.php
  2. 3 3
      src/View/Helper/TimeHelper.php

+ 1 - 1
src/I18n/Time.php

@@ -191,7 +191,7 @@ class Time extends Carbon implements JsonSerializable {
 /**
  * Returns a UNIX timestamp.
  *
- * @return string Unix timestamp
+ * @return string UNIX timestamp
  */
 	public function toUnixString() {
 		return $this->format('U');

+ 3 - 3
src/View/Helper/TimeHelper.php

@@ -189,7 +189,7 @@ class TimeHelper extends Helper {
  */
 	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 @@ class TimeHelper extends Helper {
  * @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();
 	}
 
 /**