Fix improper date reference in blog reader. am: 2732bb762a am: 0f6d425804

am: 53cd365b2d

* commit '53cd365b2d2c2b074d628147a8a382275075bd1d':
  Fix improper date reference in blog reader.

Change-Id: I300892c3c4439354917872839c18e4c029160df1
This commit is contained in:
Dirk Dougherty 2016-05-26 23:49:38 +00:00 committed by android-build-merger
commit a5bce98621

View file

@ -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);