Make publish dates function properly.

Turns out we had publish date fields and never made them work. Doh!