silverstripe/sapphire — pull request #241 by oddnoc (2012-03-13 00:49:36+00:00)
Title: Set UTC timezone for SapphireTest

At Sam's suggestion, rather than trying to track down tests that do date calculations and setting the timezone to UTC there, use SapphireTest to set a standard timezone (UTC) for all tests.

This required setting the PHP timezone in setUp() and setUpOnce(), as well as reopening the database connection with an explicit timezone in create_tmp_db().

Now all datetime tests pass. In fact, all tests pass but one, UploadFieldTest, which has a markTestIncomplete() call in it.