forked from openkylin/platform_build
Fix improper date reference in blog reader. am: 2732bb762a
am: 0f6d425804
am: 53cd365b2d
am: a5bce98621
* commit 'a5bce98621ef4aa7632ead4de267118f4832d6c2':
Fix improper date reference in blog reader.
Change-Id: I2538657326e83df01099859a463dc23a4b1abd96
This commit is contained in:
commit
b1b737582d
|
@ -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