We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a22a53 commit 208b1c9Copy full SHA for 208b1c9
1 file changed
apps/web/src/components/EvoluFullExample.tsx
@@ -23,6 +23,7 @@ import {
23
sqliteTrue,
24
timestampBytesToTimestamp,
25
} from "@evolu/common";
26
+import { timestampToDateIso } from "@evolu/common/local-first";
27
import {
28
createUseEvolu,
29
EvoluProvider,
@@ -419,7 +420,7 @@ const HomeTabProjectSectionTodoItem: FC<{
419
420
void evolu.loadQuery(titleHistoryQuery).then((rows) => {
421
const rowsWithTimestamp = rows.map((row) => ({
422
value: row.value,
- timestamp: timestampBytesToTimestamp(row.timestamp),
423
+ timestamp: timestampToDateIso(timestampBytesToTimestamp(row.timestamp)),
424
}));
425
alert(JSON.stringify(rowsWithTimestamp, null, 2));
426
});
0 commit comments