fix get history time