[php] Fix day, hour, minute, second calculations