php-src/ext/date/tests/bug28088.phpt
Derick Rethans 58daa3fd3a - Removed support for putenv("TZ=..") for setting the timezone.
- Removed the timezone guessing algorithm in case the timezone isn't set with
  date.timezone or date_default_timezone_set(). Instead of a guessed timezone,
  "UTC" is now used instead.
2011-09-13 14:48:13 +00:00

18 lines
514 B
PHP

--TEST--
Bug #28088 (strtotime() cannot convert 00 hours")
--INI--
date.timezone=UTC
--FILE--
<?php
echo "The following line rightly shows the correct date time:\n";
echo gmdate("m/d/y Hi", strtotime("04/04/04 2345")), "\n";
echo "But the following line fails to show the correct date time:\n";
echo gmdate("m/d/y Hi", strtotime("04/04/04 0045"))."\r\n";
?>
--EXPECT--
The following line rightly shows the correct date time:
04/04/04 2345
But the following line fails to show the correct date time:
04/04/04 0045