fixed dateime conversion issues