xref: /PHP-8.1/ext/date/tests/bug34676.phpt (revision f8d79582)
1--TEST--
2Bug #34676 (missing support for strtotime("midnight") and strtotime("noon"))
3--FILE--
4<?php
5date_default_timezone_set("UTC");
6
7$tests = array(
8    'noon', 'midnight'
9);
10
11foreach ($tests as $test) {
12    $t = strtotime("2005-12-22 ". $test);
13    printf("%-10s => %s\n", $test, date(DATE_ISO8601, $t));
14}
15
16?>
17--EXPECT--
18noon       => 2005-12-22T12:00:00+0000
19midnight   => 2005-12-22T00:00:00+0000
20