Fix regression with datetime2ticks vs date object as argument [applied]