Skip to content

Commit e4fa2d3

Browse files
committed
add right datetime format
1 parent 7550c3b commit e4fa2d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chinook/app/front/src/components/MyInvoicesPage.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const INVOICE_STATUS = {
2525
};
2626
const CANCELLED_STATUS = -1;
2727
const DATE_TIME_FORMAT_PATTERN = 'LLLL';
28-
const UTC_DATE_TIME_FORMAT = 'YYYY-MM-DDThh:mm:ss';
28+
const UTC_DATE_TIME_FORMAT = 'YYYY-MM-DDThh:mm:ssZ';
2929
const INVOICE_ITEMS_COLUMNS = [
3030
{
3131
title: 'Track name',

chinook/srv/browse-invoices-service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const moment = require("moment");
44
const LEVERAGE_DURATION = 1; // in hours. should be the same in the frontend
55
const CANCEL_STATUS = -1;
66
const SHIPPED_STATUS = 1;
7-
const UTC_DATE_TIME_FORMAT = "YYYY-MM-DDThh:mm:ss";
7+
const UTC_DATE_TIME_FORMAT = "YYYY-MM-DDThh:mm:ssZ";
88

99
function roundNumber(num) {
1010
return Math.round((num + Number.EPSILON) * 100) / 100;

0 commit comments

Comments
 (0)