importer: fix a bug with the dates not being set properly