#bash
unset HISTTIMEFORMAT # or just don't have it in the first place
# accidentally paste in some number preceded by # maybe followed by any nondigit characters and press enter like
#12x
echo type in some command
history -a # or -w or just exit
HISTTIMEFORMAT="%F %T "
history
#bash
#12x