Fix improper date reference in blog reader.
am: 2732bb762a
* commit '2732bb762a00828f36bda77c43c7fd14c7495cde':
Fix improper date reference in blog reader.
Change-Id: I5ff0d1d2b16ae712b6e92ef64c023574d2e7bfe5
This commit is contained in:
@@ -2146,7 +2146,7 @@ function showSamples() {
|
|||||||
|
|
||||||
BlogReader.prototype.openModal_ = function(blog, post) {
|
BlogReader.prototype.openModal_ = function(blog, post) {
|
||||||
var published = new Date(post.published);
|
var published = new Date(post.published);
|
||||||
var formattedDate = monthNames[published.getMonth()] + ' ' + published.getDay() + ' ' + published.getFullYear();
|
var formattedDate = monthNames[published.getMonth()] + ' ' + published.getDate() + ' ' + published.getFullYear();
|
||||||
this.blogReader.find('.dac-modal-header-open').attr('href', post.url);
|
this.blogReader.find('.dac-modal-header-open').attr('href', post.url);
|
||||||
this.blogReader.find('.dac-modal-header-title').text(blog.title);
|
this.blogReader.find('.dac-modal-header-title').text(blog.title);
|
||||||
this.blogReader.find('.dac-blog-reader-title').html(post.title);
|
this.blogReader.find('.dac-blog-reader-title').html(post.title);
|
||||||
|
Reference in New Issue
Block a user