From aa458ee7d3a777d779ef2fcbbb1795978983c927 Mon Sep 17 00:00:00 2001 From: Nick Liu Date: Thu, 1 Nov 2018 18:49:20 -0500 Subject: [PATCH] Explicit timezone settings in e_DateTest and e_formTest --- tests/unit/e_dateTest.php | 1 + tests/unit/e_formTest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/unit/e_dateTest.php b/tests/unit/e_dateTest.php index 379608f0d..46b321cc2 100644 --- a/tests/unit/e_dateTest.php +++ b/tests/unit/e_dateTest.php @@ -18,6 +18,7 @@ { // Expected values made using the C locale setlocale(LC_TIME, 'C'); + date_default_timezone_set('UTC'); try { diff --git a/tests/unit/e_formTest.php b/tests/unit/e_formTest.php index 10b5a18b4..52b617876 100644 --- a/tests/unit/e_formTest.php +++ b/tests/unit/e_formTest.php @@ -704,6 +704,7 @@ class e_formTest extends \Codeception\Test\Unit */ public function testRenderValue() { + date_default_timezone_set('America/Los_Angeles'); $frm = $this->_frm;