Skip to content

Commit 34179ba

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
2 parents 7940fb4 + 1ed5a2a commit 34179ba

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

ext/date/tests/bug48097.phpt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
--TEST--
22
Bug #48097 (date_timezone_set function produces wrong datetime result)
3-
--XFAIL--
4-
Broken by timelib update
53
--INI--
64
date.timezone=UTC
75
--FILE--
86
<?php
9-
$d = date_create( "Mon, 23 May 1955 00:00:00 +0200" );
7+
$d = date_create( "Sun, 22 May 1955 02:00:00 +0200" );
108
var_dump( $d );
119
echo $d->format( DATE_ISO8601 ), "\n";
1210
echo $d->format( 'U' ), "\n\n";
@@ -18,23 +16,23 @@ echo $d->format( 'U' ), "\n\n";
1816
--EXPECT--
1917
object(DateTime)#1 (3) {
2018
["date"]=>
21-
string(26) "1955-05-23 00:00:00.000000"
19+
string(26) "1955-05-22 02:00:00.000000"
2220
["timezone_type"]=>
2321
int(1)
2422
["timezone"]=>
2523
string(6) "+02:00"
2624
}
27-
1955-05-23T00:00:00+0200
28-
-461124000
25+
1955-05-22T02:00:00+0200
26+
-461203200
2927

3028
object(DateTime)#1 (3) {
3129
["date"]=>
32-
string(26) "1955-05-22 23:00:00.000000"
30+
string(26) "1955-05-22 01:00:00.000000"
3331
["timezone_type"]=>
3432
int(3)
3533
["timezone"]=>
3634
string(15) "Europe/Budapest"
3735
}
38-
1955-05-22T23:00:00+0100
36+
1955-05-22T01:00:00+0100
3937

40-
-461124000
38+
-461203200

0 commit comments

Comments
 (0)