fixing timestamps in history