xref: /PHP-8.1/ext/date/tests/bug62326.phpt (revision 091c0920)
1--TEST--
2Bug #62326 (date_diff() function returns false result)
3--FILE--
4<?php
5date_default_timezone_set("Europe/Berlin");
6
7$start_timestamp    = date_create('2012-06-01');
8$end_timestamp      = date_create('2012-12-01');
9$difference = date_diff($start_timestamp, $end_timestamp);
10
11echo $difference->format('%mM / %dD %hH %iM'), "\n";
12?>
13--EXPECT--
146M / 0D 0H 0M
15