Fix date/time in TDS stuff (bug #2147)