Fixed date and time (de)serialization, added time validation