Make the wall display and Proxmox dates follow the date and time settings
The wall clock, date line and 'Updated' footer used the browser locale, and the Proxmox backup tasks and PBS page used toLocaleString. They now use the display settings via new formatDate/formatTime helpers. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bff0c2169e
commit
3945c60681
4 files changed
+23
-21
No files matched your search
@@ -10,6 +10,7 @@ import {
|
||||
} from "../api/client";
|
||||
import { useSortable } from "../hooks/useSortable";
|
||||
import SortableTh from "../components/SortableTh";
|
||||
import { formatDateTime } from "../utils/date";
|
||||
import { downloadCsv } from "../utils/csv";
|
||||
import IntegrationPageTitle from "../components/IntegrationPageTitle";
|
||||
import { ErrorNotice } from "../components/Notice";
|
||||
@@ -28,7 +29,7 @@ function formatBytes(bytes: number | null): string {
|
||||
|
||||
function formatDate(unixSeconds: number | null): string {
|
||||
if (unixSeconds === null) return "—";
|
||||
return new Date(unixSeconds * 1000).toLocaleString();
|
||||
return formatDateTime(new Date(unixSeconds * 1000));
|
||||
}
|
||||
|
||||
function formatUptime(seconds: number | null): string {
|
||||
|
||||
Reference in new issue
Block a user