dereuromark 9 年之前
父节点
当前提交
030c80b633
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 = Time::parse($date);
+			$date = self::parse($date);
 		}
 		if ($date !== null) {
 			$date = $date->format('U');