Mark Scherer 10 年之前
父节点
当前提交
e4051421a2
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      src/Utility/Time.php

+ 0 - 3
src/Utility/Time.php

@@ -530,9 +530,6 @@ class Time extends CakeTime {
 		if ($options['timezone'] === null && strlen($dateString) === 10) {
 			$options['timezone'] = date_default_timezone_get();
 		}
-		if ($dateString === null) {
-			$dateString = time();
-		}
 
 		if ($options['timezone']) {
 			$options['timezone'] = static::safeCreateDateTimeZone($options['timezone']);