I have a TIMESTAMP column, with "on update current_timestamp()". I currently leave the field blank in all of my scripts, and just let MySQL take care of it.
But it's an irritant when I modify something in phpMyAdmin and it changes the timestamp when I didn't mean for it to, so I'd rather remove the "on update..." and insert a timestamp in Perl / PHP.
The question is, what format do I need to use?
In Perl, can I simply insert localtime(time)? Surely I don't have to manually format it to 2022-12-19 17:13:27 :-/