added truncate flag for saving timestamp #495