Permalink
Browse files

Correcting timehelper tests to use correct timestamp for indicated ti…

…mes. Making timezone output more resilient.
  • Loading branch information...
1 parent f1276ce commit 0e09fee3b1988aacb176beea461e7aaab526e7f0 @markstory markstory committed Jan 17, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 cake/tests/cases/libs/view/helpers/time.test.php
@@ -661,7 +661,7 @@ function testConvertSpecifiers() {
'locales' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'locale' . DS)
), true);
Configure::write('Config.language', 'time_test');
- $time = 1263485619; // Thu Jan 14 11:43:39 2010
+ $time = 1263487419; // Thu Jan 14 11:43:39 2010
$result = $this->Time->convertSpecifiers('%a', $time);
$expected = 'jue';
@@ -751,14 +751,14 @@ function testI18nFormat() {
'locales' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'locale' . DS)
), true);
Configure::write('Config.language', 'time_test');
- $time = 1263493768; //Thu Jan 14 13:59:28 2010
+ $time = 1263495568; //Thu Jan 14 13:59:28 2010
$result = $this->Time->i18nFormat($time);
$expected = '14/01/10';
$this->assertEqual($result, $expected);
$result = $this->Time->i18nFormat($time, '%c');
- $expected = 'jue 14 ene 2010 13:59:28 VET';
+ $expected = 'jue 14 ene 2010 13:59:28 ' . strftime('%Z');
$this->assertEqual($result, $expected);
$result = $this->Time->i18nFormat($time, 'Time is %r, and date is %x');

0 comments on commit 0e09fee

Please sign in to comment.