xref: /PHP-5.3/ext/date/tests/bug17988.phpt (revision e753493c)
1--TEST--
2Bug #17988 (strtotime handling of postgresql timestamps)
3--INI--
4date.timezone=GMT
5--FILE--
6<?php
7echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728"))."\n";
8echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 GMT"))."\n";
9echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 MET"))."\n";
10echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 MEST"))."\n";
11echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 EDT"))."\n";
12echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-00"))."\n";
13echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+00"))."\n";
14echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-04"))."\n";
15echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+04"))."\n";
16echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-0300"))."\n";
17echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+0300"))."\n";
18echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-0330"))."\n";
19echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+0330"))."\n";
20?>
21--EXPECT--
222002-06-25 14:18:48
232002-06-25 14:18:48
242002-06-25 13:18:48
252002-06-25 12:18:48
262002-06-25 18:18:48
272002-06-25 14:18:48
282002-06-25 14:18:48
292002-06-25 18:18:48
302002-06-25 10:18:48
312002-06-25 17:18:48
322002-06-25 11:18:48
332002-06-25 17:48:48
342002-06-25 10:48:48
35