mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-21 18:53:37 +00:00
Change last refresh time display format to system locale
This commit is contained in:
@@ -368,11 +368,10 @@ function App() {
|
||||
const formatLastUpdate = (timestamp: string) => {
|
||||
if (!timestamp) return '';
|
||||
const date = new Date(timestamp);
|
||||
return date.toLocaleTimeString('en-US', {
|
||||
return date.toLocaleTimeString(undefined, {
|
||||
hour: 'numeric',
|
||||
minute: '2-digit',
|
||||
second: '2-digit',
|
||||
hour12: true
|
||||
second: '2-digit'
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user