Datetime problem fixed