Annotation of embedaddon/php/ext/date/tests/bug17988.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #17988 (strtotime handling of postgresql timestamps)
! 3: --INI--
! 4: date.timezone=GMT
! 5: --FILE--
! 6: <?php
! 7: echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728"))."\n";
! 8: echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 GMT"))."\n";
! 9: echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 MET"))."\n";
! 10: echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 MEST"))."\n";
! 11: echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 EDT"))."\n";
! 12: echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-00"))."\n";
! 13: echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+00"))."\n";
! 14: echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-04"))."\n";
! 15: echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+04"))."\n";
! 16: echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-0300"))."\n";
! 17: echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+0300"))."\n";
! 18: echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-0330"))."\n";
! 19: echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+0330"))."\n";
! 20: ?>
! 21: --EXPECT--
! 22: 2002-06-25 14:18:48
! 23: 2002-06-25 14:18:48
! 24: 2002-06-25 13:18:48
! 25: 2002-06-25 12:18:48
! 26: 2002-06-25 18:18:48
! 27: 2002-06-25 14:18:48
! 28: 2002-06-25 14:18:48
! 29: 2002-06-25 18:18:48
! 30: 2002-06-25 10:18:48
! 31: 2002-06-25 17:18:48
! 32: 2002-06-25 11:18:48
! 33: 2002-06-25 17:48:48
! 34: 2002-06-25 10:48:48
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>