dereuromark 9 years ago
parent
commit
9ad2658578
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Utility/Time.php

+ 1 - 1
src/Utility/Time.php

@@ -944,7 +944,7 @@ class Time extends CakeTime {
 	 */
 	public static function relLengthOfTime($date, $format = null, array $options = []) {
 		if ($date !== null && !is_object($date)) {
-			$date = self::parse($date);
+			$date = static::parse($date);
 		}
 		if ($date !== null) {
 			$date = $date->format('U');