K
Kysely10mo ago
djMax

Is there a way to keep full date precision?

It appears that selecting dates from Postgresql loses some precision, which wreaks havoc with my paging logic. Is there a way to get dates to have full precision on the JS side?
1 Reply
koskimas
koskimas10mo ago
You can't increase the accuracy of a JavaScript Date, but you can install a custom date parser that creates an ISO date string with full precision https://kysely.dev/docs/recipes/data-types
Data types | Kysely
When talking about data types in Kysely we need to make a distinction between the two kinds of types:
Want results from more Discord servers?
Add your server