calling prepareTimestamps at save