changed the publishedAt from string to date