xref: /PHP-8.4/ext/date/tests/bug35218.phpt (revision 95c6c6d2)
1--TEST--
2Bug #35218 (strtotime no longer ignores timezone comments like "(PST)")
3--FILE--
4<?php
5date_default_timezone_set("UTC");
6$date = 'Sun, 13 Nov 2005 22:56:10 -0800 (PST)';
7$date_fixed = 'Sun, 13 Nov 2005 22:56:10 -0800';
8
9var_dump(strtotime($date));
10var_dump(strtotime($date_fixed));
11?>
12--EXPECT--
13int(1131951370)
14int(1131951370)
15