Date and time is now stored correctly in database