File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / date / tests / bug26090.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:53 2012 UTC (12 years, 6 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

--TEST--
Bug #26090 (allow colons in time zone offset to strtotime())
--INI--
date.timezone=America/New_York
--FILE--
<?php
$t = '2003-10-28 10:20:30-0800';
echo date('Y-m-d H:i:s T', strtotime($t)) . "\n";

$t = '2003-10-28 10:20:30-08:00';
echo date('Y-m-d H:i:s T', strtotime($t)) . "\n";
?>
--EXPECT--
2003-10-28 13:20:30 EST
2003-10-28 13:20:30 EST

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>