fixed a bug in date/time