Fix date format after sync
The date and time format was incorrect after syncing data from the cloud. This commit addresses the issue.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { supabase } from '@/lib/supabase';
|
||||
import { Transaction } from '@/components/TransactionCard';
|
||||
import { isSyncEnabled } from '../syncSettings';
|
||||
import { formatDateForDisplay } from './dateUtils';
|
||||
|
||||
/**
|
||||
* Download transaction data from Supabase to local storage
|
||||
@@ -34,9 +35,10 @@ export const downloadTransactions = async (userId: string): Promise<void> => {
|
||||
id: t.transaction_id || t.id,
|
||||
title: t.title,
|
||||
amount: t.amount,
|
||||
date: t.date,
|
||||
date: t.date ? formatDateForDisplay(t.date) : '날짜 없음',
|
||||
category: t.category,
|
||||
type: t.type
|
||||
type: t.type,
|
||||
notes: t.notes
|
||||
}));
|
||||
|
||||
// 기존 로컬 데이터 불러오기
|
||||
|
||||
Reference in New Issue
Block a user