Ciao Hormus,
avevo impostato il timezone con il mio, ma a quanto pare non andava bene
reimpostato cosi mi segna correttamente il risultato
questo e' il risultato dello script con timezone Europe/Moscow
e questo con timezone Europe/Rome
avevo impostato il timezone con il mio, ma a quanto pare non andava bene
PHP:
$timezone = timezone_open('Europe/Moscow');
reimpostato cosi mi segna correttamente il risultato
PHP:
$timezone = timezone_open('Europe/Moscow');
questo e' il risultato dello script con timezone Europe/Moscow
PHP:
object(DateTime)#1 (3) {
["date"]=>
string(26) "2020-07-10 16:50:40.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(13) "Europe/Moscow"
}
string(13) "Europe/Moscow"
int(1293829200)
int(1325361600)
object(DateInterval)#5 (15) {
["y"]=>
int(0)
["m"]=>
int(11)
["d"]=>
int(29)
["h"]=>
int(23)
["i"]=>
int(0)
["s"]=>
int(0)
["weekday"]=>
int(0)
["weekday_behavior"]=>
int(0)
["first_last_day_of"]=>
int(0)
["invert"]=>
int(0)
["days"]=>
int(365)
["special_type"]=>
int(0)
["special_amount"]=>
int(0)
["have_weekday_relative"]=>
int(0)
["have_special_relative"]=>
int(0)
}
object(DateTime)#3 (3) {
["date"]=>
string(26) "2011-01-01 00:00:00.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(13) "Europe/Moscow"
}
object(DateTime)#4 (3) {
["date"]=>
string(26) "2012-01-01 00:00:00.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(13) "Europe/Moscow"
}
e questo con timezone Europe/Rome
PHP:
object(DateTime)#1 (3) {
["date"]=>
string(26) "2020-07-10 16:52:46.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(13) "Europe/Moscow"
}
string(13) "Europe/Moscow"
int(1293836400)
int(1325372400)
object(DateInterval)#5 (15) {
["y"]=>
int(1)
["m"]=>
int(0)
["d"]=>
int(0)
["h"]=>
int(0)
["i"]=>
int(0)
["s"]=>
int(0)
["weekday"]=>
int(0)
["weekday_behavior"]=>
int(0)
["first_last_day_of"]=>
int(0)
["invert"]=>
int(0)
["days"]=>
int(365)
["special_type"]=>
int(0)
["special_amount"]=>
int(0)
["have_weekday_relative"]=>
int(0)
["have_special_relative"]=>
int(0)
}
object(DateTime)#3 (3) {
["date"]=>
string(26) "2011-01-01 00:00:00.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(11) "Europe/Rome"
}
object(DateTime)#4 (3) {
["date"]=>
string(26) "2012-01-01 00:00:00.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(11) "Europe/Rome"
}