From 3a183849298e606475af8a606cb2c3a9c512ad8c Mon Sep 17 00:00:00 2001 From: Ceeram Date: Thu, 3 May 2012 09:55:52 +0200 Subject: [PATCH] fix failing testcase --- lib/Cake/Test/Case/Routing/Filter/AssetDispatcherTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Routing/Filter/AssetDispatcherTest.php b/lib/Cake/Test/Case/Routing/Filter/AssetDispatcherTest.php index 998e561a457..28d44b49b33 100644 --- a/lib/Cake/Test/Case/Routing/Filter/AssetDispatcherTest.php +++ b/lib/Cake/Test/Case/Routing/Filter/AssetDispatcherTest.php @@ -93,7 +93,7 @@ public function testNotModified() { 'View' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View' . DS) )); $time = filemtime(App::themePath('TestTheme') . 'webroot' . DS . 'img' . DS . 'cake.power.gif'); - $time = new DateTime(date('Y-m-d H:i:s', $time), new DateTimeZone('UTC')); + $time = new DateTime('@' . $time); $response = $this->getMock('CakeResponse', array('send', 'checkNotModified')); $request = new CakeRequest('theme/test_theme/img/cake.power.gif');