fix time import

Fixes issue #1