throw if trying to overwrite time in non-test env