diff --git a/webapp/static/js/flowdisplay.js b/webapp/static/js/flowdisplay.js index 0af8eb4..cdfe440 100644 --- a/webapp/static/js/flowdisplay.js +++ b/webapp/static/js/flowdisplay.js @@ -156,9 +156,9 @@ class FlowDisplay { fractionalSecondDigits: 3 } const dateStart = new Date(flow.flow.ts_start) - const formatedDateStart = new Intl.DateTimeFormat('en-US', dateParams).format(dateStart) + const formatedDateStart = new Intl.DateTimeFormat(undefined, dateParams).format(dateStart) const dateEnd = new Date(flow.flow.ts_end) - const formatedDateEnd = new Intl.DateTimeFormat('en-US', dateParams).format(dateEnd) + const formatedDateEnd = new Intl.DateTimeFormat(undefined, dateParams).format(dateEnd) // Change document title document.title = `${flow.flow.dest_ipport} - Shovel` diff --git a/webapp/static/js/flowlist.js b/webapp/static/js/flowlist.js index 69e3132..cfe6a91 100644 --- a/webapp/static/js/flowlist.js +++ b/webapp/static/js/flowlist.js @@ -329,7 +329,7 @@ class FlowList { flows.forEach((flow) => { const date = new Date(flow.ts_start) const startDate = new Intl.DateTimeFormat( - 'en-US', + undefined, { hour: 'numeric', minute: 'numeric', second: 'numeric', fractionalSecondDigits: 1 } ).format(date)