text2history.cpp: timestamp may be negative