You must convert your format. In addition, you are not loading the object.
At least you need to do: time_of_call.getTime(); which returns a timestamp.
After loading the timestamp, you need to convert it to your own DB format, for example: date('dm-Y',(int)$_REQUEST['time_of_call']);
The format of the date depends on whether you used DATE, DATETIME, TIME, TIMESTAMP or INT.
If you used TIMESTAMP or INT (IMHO is best), you do not need to convert.
Important: The javascript timestamp is in milliseconds, while the PHP timestamp is in seconds. You will need to do time=time_of_call.getTime()/1000; to fix it.
source share