fixing import/export to work with dates