Something is not working properly with the following code and I am going mad trying to understand why it is not calculating correctly:
$hours = date('H:i' , strtotime('03:00') - strtotime('02:00'));
echo $hours;
Result: 02:00
Expected Result: 01:00
Could anyone help me guessing what is going wrong?
01:00