Skip to content

Commit 8bc29d9

Browse files
committed
Merge branch 'PHP-8.0' into master
2 parents d2e5061 + 63289cf commit 8bc29d9

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";
@@ -19,23 +17,23 @@ echo $d->format( 'U' ), "\n\n";
1917
--EXPECT--
2018
object(DateTime)#1 (3) {
2119
["date"]=>
22-
string(26) "1955-05-23 00:00:00.000000"
20+
string(26) "1955-05-22 02:00:00.000000"
2321
["timezone_type"]=>
2422
int(1)
2523
["timezone"]=>
2624
string(6) "+02:00"
2725
}
28-
1955-05-23T00:00:00+0200
29-
-461124000
26+
1955-05-22T02:00:00+0200
27+
-461203200
3028

3129
object(DateTime)#1 (3) {
3230
["date"]=>
33-
string(26) "1955-05-22 23:00:00.000000"
31+
string(26) "1955-05-22 01:00:00.000000"
3432
["timezone_type"]=>
3533
int(3)
3634
["timezone"]=>
3735
string(15) "Europe/Budapest"
3836
}
39-
1955-05-22T23:00:00+0100
37+
1955-05-22T01:00:00+0100
4038

41-
-461124000
39+
-461203200

0 commit comments

Comments
 (0)