Skip to content

Explicitly set date.timezone to prevent warnings if not set in php.ini #395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/bson/bson-utcdatetime-005.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
MongoDB\BSON\UTCDateTime construction from DateTime
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/bson/bson-utcdatetime-006.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
MongoDB\BSON\UTCDateTime construction from DateTimeImmutable
--SKIPIF--
<?php if (!version_compare(phpversion(), "5.5", '>=')) echo "skip >= PHP 5.5 needed\n"; ?>
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/bson/bson-utcdatetime-todatetime-002.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
MongoDB\BSON\UTCDateTime::toDateTime() dumping seconds and microseconds
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/bson/bug0631.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
PHPC-631: UTCDateTime::toDateTime() may return object that cannot be serialized
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down