Properly format publish date.

fixes #1335