summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codeigniter')
-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)
);