xref: /PHP-7.0/ext/date/tests/bug37017.phpt (revision a9e5e222)
1--TEST--
2Bug #37017 (strtotime fails before 13:00:00 with some time zones identifiers).
3--FILE--
4<?php
5date_default_timezone_set('GMT');
6echo strtotime("2006-05-12 13:00:01 America/New_York"), "\n";
7echo strtotime("2006-05-12 13:00:00 America/New_York"), "\n";
8echo strtotime("2006-05-12 12:59:59 America/New_York"), "\n";
9echo strtotime("2006-05-12 12:59:59 GMT"), "\n";
10?>
11--EXPECT--
121147453201
131147453200
141147453199
151147438799
16