mirror of
https://github.com/fankes/beszel.git
synced 2025-10-22 11:29:23 +08:00
site updates
This commit is contained in:
@@ -31,3 +31,14 @@ export const updateServerList = () => {
|
||||
$servers.set(records)
|
||||
})
|
||||
}
|
||||
|
||||
export const shortDateFormatter = new Intl.DateTimeFormat('en-US', {
|
||||
// day: 'numeric',
|
||||
// month: 'numeric',
|
||||
// year: '2-digit',
|
||||
// hour12: false,
|
||||
hour: 'numeric',
|
||||
minute: 'numeric',
|
||||
})
|
||||
|
||||
export const formatDateShort = (timestamp: string) => shortDateFormatter.format(new Date(timestamp))
|
||||
|
Reference in New Issue
Block a user