Skip to content

Commit

Permalink
hotfix for import dates
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacon36 committed Apr 5, 2022
1 parent 130e31e commit 8a8bd81
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,12 @@
lastImport() {
if (!this.lastImportDate) return "N/A";
const lastImportDate = new Date(this.lastImportDate);
return `${lastImportDate.getMonth() + 1}/${lastImportDate.getDate()}/${lastImportDate.getFullYear()} @ ${lastImportDate.getHours()}:${lastImportDate.getMinutes()}`;
const month = lastImportDate.getMonth() + 1; // months are zero indexed
const day = lastImportDate.getDate();
const year = lastImportDate.getFullYear();
const hours = lastImportDate.getHours();
const minutes = lastImportDate.getMinutes();
return `${month}/${day}/${year} @ ${hours}:${minutes}`;
},
importerStatus() {
if (this.bulkImportActive) return "Active";
Expand Down

0 comments on commit 8a8bd81

Please sign in to comment.