fix time setup on older perls