some fixes for pub_date and unpub_date