Correct handling of dates in importer