datetime di diff bug fix