This probably falls under the "reinventing the wheel" concept, since timestamps of posts can be updated manually. But I would like to know what I would include in a plugin function that would automatically (without user input) change the existing timestamp of an unposted story, to a timestamp with the CURRENT time, whenever someone hit "Publish" on that draft.
To make a long story short, this has to do with problems caused by a plugin I already use (and which I can't dump) called Edit Flow, which creates custom post statuses for unpublished posts. When a custom status is defined for a post, it affixes a timestamp to the post (unlike Draft or Pending does) - a "sticky" timestamp which can't be removed by sending it back to draft status. In order to publish a post with the correct timestamp, you would ordinarily just manually change the timestamp. But my editors routinely forget to do this.
So I'm curious to know what sort of function you might use to auto-change the timestamp to the current time (similar to "Publish Immediately") under these circumstances.