auto correction of timestamp