replace static date with publishedDate in gallery view