Fixing issue where AM/PM are not handled correctly in campaign scheduling

attachment-support
Jordan Wright 2016-08-16 19:27:01 -05:00
parent ac62f33e80
commit bccf7f2fd2
2 changed files with 3 additions and 3 deletions

View File

@ -258,7 +258,7 @@ function renderTimeline(data) {
' <div class="timeline-icon ' + statuses[event.message].label + '">' +
' <i class="fa ' + statuses[event.message].icon + '"></i></div>' +
' <div class="timeline-message">' + escapeHtml(event.message) +
' <span class="timeline-date">' + moment(event.time).format('MMMM Do YYYY h:mm') + '</span>'
' <span class="timeline-date">' + moment(event.time).format('MMMM Do YYYY h:mm a') + '</span>'
if (event.details && event.message == "Submitted Data") {
results += '<div class="timeline-replay-button"><button onclick="replay(' + i + ')" class="btn btn-success">'
results += '<i class="fa fa-refresh"></i> Replay Credentials</button></div>'
@ -449,7 +449,7 @@ function load() {
type: Chartist.FixedScaleAxis,
divisor: 5,
labelInterpolationFnc: function(value) {
return moment(value).format('MMMM Do YYYY h:mm')
return moment(value).format('MMMM Do YYYY h:mm a')
}
},
axisY: {

View File

@ -44,7 +44,7 @@ function launch() {
smtp: {
name: $("#profile").val()
},
launch_date: moment($("#launch_date").val(), "MM/DD/YYYY HH:mm").format(),
launch_date: moment($("#launch_date").val(), "MM/DD/YYYY hh:mm a").format(),
groups: groups
}
// Submit the campaign