fix issue with null published_at values

#45
calculate published base on timestamp