Skip to content

Commit

Permalink
[Form] Fixed failing tests for DateTimeToStringTransformer.
Browse files Browse the repository at this point in the history
Tests were only failing at the end of the month. PHP uses current day if it is not passed. Since February was used in the test cases, date was being moved to the next month (February has less days than other months).
  • Loading branch information
jakzal committed Dec 29, 2012
1 parent 9f43781 commit 33f223f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function dataProvider()
array('Y-m-d H:i', '2010-02-03 16:05', '2010-02-03 16:05:00 UTC'), array('Y-m-d H:i', '2010-02-03 16:05', '2010-02-03 16:05:00 UTC'),
array('Y-m-d H', '2010-02-03 16', '2010-02-03 16:00:00 UTC'), array('Y-m-d H', '2010-02-03 16', '2010-02-03 16:00:00 UTC'),
array('Y-m-d', '2010-02-03', '2010-02-03 00:00:00 UTC'), array('Y-m-d', '2010-02-03', '2010-02-03 00:00:00 UTC'),
array('Y-m', '2010-02', '2010-02-01 00:00:00 UTC'), array('Y-m', '2010-12', '2010-12-01 00:00:00 UTC'),
array('Y', '2010', '2010-01-01 00:00:00 UTC'), array('Y', '2010', '2010-01-01 00:00:00 UTC'),
array('d-m-Y', '03-02-2010', '2010-02-03 00:00:00 UTC'), array('d-m-Y', '03-02-2010', '2010-02-03 00:00:00 UTC'),
array('H:i:s', '16:05:06', '1970-01-01 16:05:06 UTC'), array('H:i:s', '16:05:06', '1970-01-01 16:05:06 UTC'),
Expand Down

0 comments on commit 33f223f

Please sign in to comment.