correctly set the updated timestamp for storage