strange behavior for Date element

mahmoodee

Member
Hello ,
I have selected my city in website time zonetime in global configuration , my city time zone is GMT+03:00.
I have two date elements in my list
the first date element show the date : 2019-10-06 09:10:00 and in database :2019-10-06 06:00:00
There are 10 minutes I don't know where it came from 09:11:00

the second date element get value from form php code , it add 11 minuets !
Code:
foreach( $period as $dt ) {
//var_dump($dt);exit;
//object(DateTime)#1306 (3) { ["date"]=> string(26) "2019-11-20 06:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "America/New_York" }
$thisDate = $dt->format("Y-m-d h:m:s");
//var_dump($thisDate);exit;
//string(19) "2019-11-20 06:11:00"
so in datetime object the date 2019-11-20 06:00:00.000000
and after apply format function , it add 11 minutes 2019-11-20 06:11:00

Is it possible to find an explanation ? why 10 minute or 11 minute have added

thank you
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top