xref: /PHP-5.5/ext/date/tests/bug35456.phpt (revision c2ec68ab)
1--TEST--
2Bug #35456 (+ 1 [time unit] format did not work)
3--FILE--
4<?php
5date_default_timezone_set("UTC");
6
7$t = 1133216119;
8
9echo date(DATE_ISO8601, strtotime("+ 1 day", $t)) . "\n";
10echo date(DATE_ISO8601, strtotime("+ 1 month", $t)) . "\n";
11echo date(DATE_ISO8601, strtotime("+ 1 week", $t)) . "\n";
12?>
13--EXPECT--
142005-11-29T22:15:19+0000
152005-12-28T22:15:19+0000
162005-12-05T22:15:19+0000
17