1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed #355 - Alert date shows the wrong day of month

This commit is contained in:
Jon Ziebell 2022-05-24 08:48:33 -04:00
parent 14bed9c570
commit bb8e618fc6

View File

@ -214,8 +214,7 @@ beestat.component.alert.prototype.decorate_detail_ = function(parent) {
.innerHTML('Date') .innerHTML('Date')
.style('font-weight', beestat.style.font_weight.bold)); .style('font-weight', beestat.style.font_weight.bold));
var timestamp = moment(this.alert_.timestamp); var timestamp = moment(this.alert_.timestamp);
date.appendChild($.createElement('div').innerHTML(timestamp.format('MMM M'))); date.appendChild($.createElement('div').innerHTML(timestamp.format('MMM Do')));
// date.appendChild($.createElement('div').innerHTML(timestamp.format('MMM M @ h:mm a')));
var details = $.createElement('div'); var details = $.createElement('div');
this.alert_detail_.appendChild(details); this.alert_detail_.appendChild(details);