Fixed #274

* Publish date is now correctly determined