BLD: fix time module import conflict

See #3097.