bug fix for import datetime