Fix improper date reference in blog reader.
Change-Id: I9f1a32a68da2d21ea02b95df8cd7dfc4396a445f
This commit is contained in:
parent
8bac6eb880
commit
2732bb762a
|
@ -2146,7 +2146,7 @@ function showSamples() {
|
|||
|
||||
BlogReader.prototype.openModal_ = function(blog, post) {
|
||||
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-title').text(blog.title);
|
||||
this.blogReader.find('.dac-blog-reader-title').html(post.title);
|
||||
|
|
Loading…
Reference in New Issue