I'm making a calendar and it works perfectly on localhost but not in my server site. I think my problem occurs because of strtotime.
while($rows = sqlsrv_fetch_array($stmt,SQLSRV_FETCH_ASSOC))
{
$start = strtotime($rows['DATEFROM']) * 1000;
$end = strtotime($rows['DATETO']) * 1000;
$calendar[] = array('ID' =>$rows['ID'],
'start' => "$start",
'end' => "$end"
);
this part of code gives;
"start":"1528588800000","end":"1528675200000"
so events seems in calendar but in my server site I use IIS server and it gives;
"start":"1528578000000","end":"1528664400000"
so events not seems perfectly.
I searched and most of you said that it occurs of timezone but my localhost timezone and server site timezone is same.It's America/Virginia
I know that php.ini file in localhost says that timezone = UTC but I don't know my IIS Server timezone(when I searched the ISS server use server site time)
localost image: https://i.stack.imgur.com/ZwMgV.jpg
serversite image: https://i.stack.imgur.com/nSNdQ.jpg
database: https://i.stack.imgur.com/IEs5m.jpg