fix: show snapshot time in browser time zone (WealthLedger/frontend#101)
This commit is contained in:
@@ -61,10 +61,10 @@ function formatMoney(
|
||||
return `${formatDecimal(decimal)} ${currency}`;
|
||||
}
|
||||
|
||||
// Без timeZone Intl берёт часовой пояс браузера пользователя.
|
||||
const snapshotFormatter = new Intl.DateTimeFormat("ru-RU", {
|
||||
dateStyle: "short",
|
||||
timeStyle: "short",
|
||||
timeZone: "UTC",
|
||||
});
|
||||
|
||||
function formatSnapshotTime(value: string): string {
|
||||
|
||||
Reference in New Issue
Block a user