From fe52eec28e64c735b809efd384d693238c25a36f Mon Sep 17 00:00:00 2001 From: Dmitriynj Date: Thu, 24 Dec 2020 15:14:32 +0300 Subject: [PATCH] add right datetime format --- chinook/app/front/src/components/MyInvoicesPage.jsx | 2 +- chinook/srv/browse-invoices-service.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chinook/app/front/src/components/MyInvoicesPage.jsx b/chinook/app/front/src/components/MyInvoicesPage.jsx index bb490282..1e6bfa0e 100644 --- a/chinook/app/front/src/components/MyInvoicesPage.jsx +++ b/chinook/app/front/src/components/MyInvoicesPage.jsx @@ -25,7 +25,7 @@ const INVOICE_STATUS = { }; const CANCELLED_STATUS = -1; const DATE_TIME_FORMAT_PATTERN = 'LLLL'; -const UTC_DATE_TIME_FORMAT = 'YYYY-MM-DDThh:mm:ss'; +const UTC_DATE_TIME_FORMAT = 'YYYY-MM-DDThh:mm:ssZ'; const INVOICE_ITEMS_COLUMNS = [ { title: 'Track name', diff --git a/chinook/srv/browse-invoices-service.js b/chinook/srv/browse-invoices-service.js index 39a0e120..85726416 100644 --- a/chinook/srv/browse-invoices-service.js +++ b/chinook/srv/browse-invoices-service.js @@ -4,7 +4,7 @@ const moment = require("moment"); const LEVERAGE_DURATION = 1; // in hours. should be the same in the frontend const CANCEL_STATUS = -1; const SHIPPED_STATUS = 1; -const UTC_DATE_TIME_FORMAT = "YYYY-MM-DDThh:mm:ss"; +const UTC_DATE_TIME_FORMAT = "YYYY-MM-DDThh:mm:ssZ"; function roundNumber(num) { return Math.round((num + Number.EPSILON) * 100) / 100;