1--TEST-- 2Bug #78452 (diff makes wrong in hour for Asia/Tehran) 3--FILE-- 4<?php 5date_default_timezone_set('Asia/Tehran'); 6$date1 = new \DateTime('2019-09-24 11:47:24'); 7$date2 = new \DateTime('2019-08-21 12:47:24'); 8var_dump($date1->diff($date2)); 9?> 10--EXPECTF-- 11object(DateInterval)#3 (%d) { 12 ["y"]=> 13 int(0) 14 ["m"]=> 15 int(1) 16 ["d"]=> 17 int(2) 18 ["h"]=> 19 int(23) 20 ["i"]=> 21 int(0) 22 ["s"]=> 23 int(0) 24 ["f"]=> 25 float(0) 26 ["invert"]=> 27 int(1) 28 ["days"]=> 29 int(33) 30 ["from_string"]=> 31 bool(false) 32} 33