From a02ca5c881785763534cc8cf0ba580da9e174728 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Thu, 24 Nov 2011 17:13:47 +0000 Subject: - Fixed bug #60236 (TLA timezone dates are not converted properly from timestamp). - Fixed bug #55253 (DateTime::add() and sub() result -1 hour on objects with time zone type 2). And fixed some test cases. --- ext/date/tests/bug60236.phpt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ext/date/tests/bug60236.phpt (limited to 'ext/date/tests/bug60236.phpt') diff --git a/ext/date/tests/bug60236.phpt b/ext/date/tests/bug60236.phpt new file mode 100644 index 0000000000..b2bb62b02e --- /dev/null +++ b/ext/date/tests/bug60236.phpt @@ -0,0 +1,20 @@ +--TEST-- +Bug #60236: TLA timezone dates are not converted properly from timestamp +--FILE-- +format('U'); +var_dump($ts); +$t->setTimestamp($ts); +var_dump($t); +?> +--EXPECT-- +string(10) "1278455908" +object(DateTime)#1 (3) { + ["date"]=> + string(19) "2010-07-06 18:38:28" + ["timezone_type"]=> + int(2) + ["timezone"]=> + string(3) "EDT" +} -- cgit v1.2.1