We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2854e2 commit aa60f50Copy full SHA for aa60f50
openwisp_radius/integrations/monitoring/static/radius-monitoring/js/device-change.js
@@ -19,7 +19,17 @@
19
// This is done to show the time in server's timezone
20
// because RadiusAccounting admin also shows the time in server's timezone.
21
let strippedDateTime = new Date(dateTimeString.replace(/[-+]\d{2}:\d{2}$/, ""));
22
- return strippedDateTime.toLocaleString();
+ const locale = djangoLocale.replace("_", "-");
23
+ const options = {
24
+ year: "numeric",
25
+ month: "short",
26
+ day: "numeric",
27
+ hour: "2-digit",
28
+ minute: "2-digit",
29
+ second: "2-digit",
30
+ hour12: false,
31
+ };
32
+ return strippedDateTime.toLocaleString(locale, options);
33
}
34
35
function fetchRadiusSessions() {
0 commit comments