wip(history): re-introduce DATEDIFF