Skip to content

Commit c82aebc

Browse files
authored
Update 5-types.mdx (#88)
1 parent a991a8c commit c82aebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/features/5-types.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ _note: I generally use `TIMESTAMPTZ` when storing dates; otherwise, inserting a
9797

9898
<div class='message is-warning'>
9999
<div class='message-body'>
100-
Although PostgreSQL supports microseconds in dates, JavaScript only supports dates to the millisecond precision. Keep this in mind when you send dates to and from PostgreSQL from node: your milliseconds will be truncated when converting to a JavaScript date object even if they exist in the database. If you need to preserve them, I recommend using a custom type parser.
100+
Although PostgreSQL supports microseconds in dates, JavaScript only supports dates to the millisecond precision. Keep this in mind when you send dates to and from PostgreSQL from node: your microseconds will be truncated when converting to a JavaScript date object even if they exist in the database. If you need to preserve them, I recommend using a custom type parser.
101101
</div>
102102
</div>

0 commit comments

Comments
 (0)