micmania1/silverstripe-blogger — pull request #18 by purplespider (2014-06-12 17:59:18+00:00)
Title: Update the PublishDate on first Publish

Currently, if a user does the following:

1. Creates a new post
2. Spends a couple of days/weeks writing the post
3. Publishes the post

The date for "Published on" ends up being the date the post was originally created, and not when the post was actually published.

This commit resolves this issue by updating the PublishDate to 'now' when the post is first published. It only does this if the PublishDate is in the past to avoid updating it when the user has manually specified for the post to be published at a later set date.