mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
Further fixes for test timezone assumptions
This commit is contained in:
parent
3f65625090
commit
dd7d6e44b9
2 changed files with 2 additions and 2 deletions
|
@ -456,7 +456,7 @@ class TestValueInfo extends Test\AbstractTest {
|
|||
["Fri, 01 Jan 2010 00:00:00 GMT", null, null, null, $this->t(1262304000), null, null, null, null, null, null, $this->t(1262304000), ],
|
||||
["2010-01-01 00:00:00", null, null, null, null, $this->t(1262304000), null, null, null, null, null, $this->t(1262304000), ],
|
||||
["2010-01-01", null, null, null, null, null, $this->t(1262304000), null, null, null, null, $this->t(1262304000), ],
|
||||
["12:34:56", null, null, null, null, null, null, $this->t(45296), null, null, null, $this->t(strtotime("Today UTC")+45296), ],
|
||||
["12:34:56", null, null, null, null, null, null, $this->t(45296), null, null, null, $this->t(date_create("today", new \DateTimezone("UTC"))->getTimestamp()+45296), ],
|
||||
["1262304000", null, null, null, null, null, null, null, $this->t(1262304000), null, null, null, ],
|
||||
["1262304000.123456", null, null, null, null, null, null, null, null, $this->t(1262304000.123456), null, null, ],
|
||||
["1262304000.42", null, null, null, null, null, null, null, null, $this->t(1262304000.42), null, null, ],
|
||||
|
|
|
@ -213,7 +213,7 @@ trait BindingTests {
|
|||
|
||||
public function testBindArbitraryDateString() {
|
||||
$input = "Today";
|
||||
$time = strtotime($input." UTC");
|
||||
$time = date_create($input, new \DateTimezone("UTC"))->getTimestamp();
|
||||
$exp = [
|
||||
"null" => null,
|
||||
"integer" => 0,
|
||||
|
|
Loading…
Reference in a new issue