xref: /php-src/ext/date/tests/bug80974.phpt (revision 84266235)
1--TEST--
2Bug #80974: Wrong diff between 2 dates in different timezones
3--FILE--
4<?php
5$dtToronto = new DateTime('2012-01-01 00:00:00.000000 America/Toronto');
6$dtVancouver = new DateTime('2012-01-01 00:00:00.000000 America/Vancouver');
7
8echo $dtVancouver->diff($dtToronto)->format('%h');
9?>
10--EXPECT--
113
12