fix tz in today transaction on coin page (#16)

This commit is contained in:
Doh
2025-01-04 12:02:05 -05:00
committed by GitHub
parent ad05a46206
commit 9c89132cf1
8 changed files with 104 additions and 39 deletions

View File

@@ -24,7 +24,7 @@ export function getNowInMilliseconds() {
}
// iso timestamp to datetime object, most for storage read
export function t2d({ timestamp, timezone }: { timestamp: string; timezone?: string }) {
export function t2d({ timestamp, timezone }: { timestamp: string; timezone: string }) {
return DateTime.fromISO(timestamp).setZone(timezone);
}