WP-2771 Adjusted code that saves the year published date to save just 'Y'