File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
Bug #48097 (date_timezone_set function produces wrong datetime result)
3
- --XFAIL--
4
- Broken by timelib update
5
3
--INI--
6
4
date.timezone=UTC
7
5
--FILE--
8
6
<?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 " );
10
8
var_dump ( $ d );
11
9
echo $ d ->format ( DATE_ISO8601 ), "\n" ;
12
10
echo $ d ->format ( 'U ' ), "\n\n" ;
@@ -19,23 +17,23 @@ echo $d->format( 'U' ), "\n\n";
19
17
--EXPECT--
20
18
object(DateTime)#1 (3) {
21
19
["date"]=>
22
- string(26) "1955-05-23 00 :00:00.000000"
20
+ string(26) "1955-05-22 02 :00:00.000000"
23
21
["timezone_type"]=>
24
22
int(1)
25
23
["timezone"]=>
26
24
string(6) "+02:00"
27
25
}
28
- 1955-05-23T00 :00:00+0200
29
- -461124000
26
+ 1955-05-22T02 :00:00+0200
27
+ -461203200
30
28
31
29
object(DateTime)#1 (3) {
32
30
["date"]=>
33
- string(26) "1955-05-22 23 :00:00.000000"
31
+ string(26) "1955-05-22 01 :00:00.000000"
34
32
["timezone_type"]=>
35
33
int(3)
36
34
["timezone"]=>
37
35
string(15) "Europe/Budapest"
38
36
}
39
- 1955-05-22T23 :00:00+0100
37
+ 1955-05-22T01 :00:00+0100
40
38
41
- -461124000
39
+ -461203200
You can’t perform that action at this time.
0 commit comments