added support for post_status in get_dates()