bugfix with dates

Datetime is not a good format to store times in.