xref: /PHP-8.0/ext/date/tests/bug32555.phpt (revision cdc4e49b)
1--TEST--
2Bug #32555 (strtotime("tomorrow") can return false)
3--INI--
4date.timezone=US/Eastern
5--FILE--
6<?php
7$stamp = 1112427000;
8print date('r', strtotime('now',$stamp)) ."\n";
9print date('r', strtotime('tomorrow',$stamp)) ."\n";
10print date('r', strtotime('+1 day',$stamp)) ."\n";
11print date('r', strtotime('+2 day',$stamp)) ."\n";
12?>
13--EXPECT--
14Sat, 02 Apr 2005 02:30:00 -0500
15Sun, 03 Apr 2005 00:00:00 -0500
16Sun, 03 Apr 2005 03:30:00 -0400
17Mon, 04 Apr 2005 02:30:00 -0400
18