summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/helpers/date_helper_test.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-14 12:21:07 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-14 12:21:07 +0200
commit3ed533109309326a858c778dfea5cb9186f965b4 (patch)
treed32b03f4570fe3c4a5850771500ad0ab2dde7b35 /tests/codeigniter/helpers/date_helper_test.php
parent0ddff314d619e5d24bdf07f3da33c779f5b6e2c0 (diff)
Some optimizations to the date helper tests
Diffstat (limited to 'tests/codeigniter/helpers/date_helper_test.php')
-rw-r--r--tests/codeigniter/helpers/date_helper_test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/codeigniter/helpers/date_helper_test.php b/tests/codeigniter/helpers/date_helper_test.php
index 242935116..1d397ac81 100644
--- a/tests/codeigniter/helpers/date_helper_test.php
+++ b/tests/codeigniter/helpers/date_helper_test.php
@@ -51,7 +51,7 @@ class Date_helper_test extends CI_TestCase {
$this->ci_set_config('time_reference', 'UTC');
$this->assertEquals(
- gmmktime(date('H'), date('i'), date('s'), date('m'), date('d'), date('Y')),
+ gmmktime(date('G'), date('i'), date('s'), date('n'), date('j'), date('Y')),
now()
);
}
@@ -196,9 +196,9 @@ class Date_helper_test extends CI_TestCase {
public function test_local_to_gmt()
{
$this->assertEquals(
- mktime(
- gmdate('H', $this->time), gmdate('i', $this->time), gmdate('s', $this->time),
- gmdate('m', $this->time), gmdate('d', $this->time), gmdate('Y', $this->time)
+ gmmktime(
+ date('G', $this->time), date('i', $this->time), date('s', $this->time),
+ date('n', $this->time), date('j', $this->time), date('Y', $this->time)
),
local_to_gmt($this->time)
);