Skip to content

Commit

Permalink
More time helper test jiggering. Some peope still experiencing issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
predominant committed Apr 13, 2010
1 parent e2b5470 commit 4982705
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cake/tests/cases/libs/view/helpers/time.test.php
Expand Up @@ -661,9 +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 = 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';
Expand Down Expand Up @@ -753,9 +751,7 @@ function testI18nFormat() {
'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';
Expand Down

0 comments on commit 4982705

Please sign in to comment.