More time helper test jiggering. Some peope still experiencing issues.

This commit is contained in:
predominant 2010-04-13 15:06:44 +10:00
parent e2b5470d19
commit 4982705d07

View file

@ -661,9 +661,7 @@ class TimeHelperTest extends CakeTestCase {
'locales' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'locale' . DS)
), true);
Configure::write('Config.language', 'time_test');
$time = 1263487419; // Thu Jan 14 11:43:39 2010
$offset = 5 * 60 * 60;
$time = $time - date('Z') - $offset - (date('I', $time) * 60 * 60);
$time = strtotime('Thu Jan 14 11:43:39 2010');
$result = $this->Time->convertSpecifiers('%a', $time);
$expected = 'jue';
@ -753,9 +751,7 @@ class TimeHelperTest extends CakeTestCase {
'locales' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'locale' . DS)
), true);
Configure::write('Config.language', 'time_test');
$time = 1263495568; //Thu Jan 14 13:59:28 2010
$offset = 5 * 60 * 60;
$time = $time - date('Z') - $offset - (date('I', $time) * 60 * 60);
$time = strtotime('Thu Jan 14 13:59:28 2010');
$result = $this->Time->i18nFormat($time);
$expected = '14/01/10';