Fix date picker defaulting to UTC instead of browser local time
All checks were successful
Deploy to VPS / deploy (push) Successful in 17s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Carlos Escalante
2026-03-31 21:02:08 -06:00
parent b68129a171
commit e011a3adcc
3 changed files with 9 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ import {
import api, { type Account, type Transaction } from '../api';
import { useSettings } from '@/hooks/useSettings';
import { formatAmount, formatDate } from '@/lib/format';
import { formatAmount, formatDate, formatLocalDatetime } from '@/lib/format';
import DashboardSection from '@/components/DashboardSection';
import SectionConfigDialog from '@/components/SectionConfigDialog';
import { Button } from '@/components/ui/button';
@@ -340,7 +340,7 @@ export default function Dashboard() {
merchant: merchants[i],
amount: amounts[i],
currency: 'CRC',
date: new Date().toISOString(),
date: formatLocalDatetime(new Date()),
bank: 'BAC',
source: 'CREDIT_CARD',
transaction_type: 'COMPRA',