diff options
author | Derick Rethans <derick@php.net> | 2005-08-24 13:47:28 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2005-08-24 13:47:28 +0000 |
commit | e226f0f87fcb0b72f1dcc56668871bc308ed2bc7 (patch) | |
tree | f158e900a099d62e0f48d49d0a1acb09e8e75a09 /ext/date/tests/bug34087.phpt | |
parent | 47539d32d08201552453f783cd959791a8af3271 (diff) | |
download | php-git-e226f0f87fcb0b72f1dcc56668871bc308ed2bc7.tar.gz |
- Fixed bug #34087 (strtotime() does not work with date format "Y/m/d").
- Make use of YYMAXFILL.
- Added support for using a . as hour/minute/second separator.
Diffstat (limited to 'ext/date/tests/bug34087.phpt')
-rw-r--r-- | ext/date/tests/bug34087.phpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/date/tests/bug34087.phpt b/ext/date/tests/bug34087.phpt new file mode 100644 index 0000000000..3736afa375 --- /dev/null +++ b/ext/date/tests/bug34087.phpt @@ -0,0 +1,10 @@ +--TEST-- +Bug #34087 (strtotime() does not work with date format "Y/m/d") +--FILE-- +<?php +echo "Y/m/d: ", strtotime("2005/8/12"), "\n"; +echo "Y-m-d: ", strtotime("2005-8-12"); +?> +--EXPECT-- +Y/m/d: 1123804800 +Y-m-d: 1123804800 |