fixed dateDiff issue