Skip to content

Commit 208b1c9

Browse files
committed
Add timestampToDateIso to EvoluFullExample
1 parent 0a22a53 commit 208b1c9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/web/src/components/EvoluFullExample.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
sqliteTrue,
2424
timestampBytesToTimestamp,
2525
} from "@evolu/common";
26+
import { timestampToDateIso } from "@evolu/common/local-first";
2627
import {
2728
createUseEvolu,
2829
EvoluProvider,
@@ -419,7 +420,7 @@ const HomeTabProjectSectionTodoItem: FC<{
419420
void evolu.loadQuery(titleHistoryQuery).then((rows) => {
420421
const rowsWithTimestamp = rows.map((row) => ({
421422
value: row.value,
422-
timestamp: timestampBytesToTimestamp(row.timestamp),
423+
timestamp: timestampToDateIso(timestampBytesToTimestamp(row.timestamp)),
423424
}));
424425
alert(JSON.stringify(rowsWithTimestamp, null, 2));
425426
});

0 commit comments

Comments
 (0)