Remove integer cast on date. This fix an integer overflow on 32 bits systems