xref: /PHP-8.3/ext/date/tests/bug26090.phpt (revision e753493c)
1--TEST--
2Bug #26090 (allow colons in time zone offset to strtotime())
3--INI--
4date.timezone=America/New_York
5--FILE--
6<?php
7$t = '2003-10-28 10:20:30-0800';
8echo date('Y-m-d H:i:s T', strtotime($t)) . "\n";
9
10$t = '2003-10-28 10:20:30-08:00';
11echo date('Y-m-d H:i:s T', strtotime($t)) . "\n";
12?>
13--EXPECT--
142003-10-28 13:20:30 EST
152003-10-28 13:20:30 EST
16