fix DateTime/datetime conversion