Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix microseconds leading zeroes #279

Open
Baxulio opened this issue Aug 11, 2023 · 0 comments
Open

fix microseconds leading zeroes #279

Baxulio opened this issue Aug 11, 2023 · 0 comments

Comments

@Baxulio
Copy link

Baxulio commented Aug 11, 2023

We have TIMESTAMPTZ field with value: '2023-07-31 16:19:49.91874'
if we map it to trantor::Date class and invoke ::toDbLocalString() it returns '2023-07-31 16:19:49.091874'

The microseconds part is converted incorrectly, because 91874 is not equal to 091874. It should be '2023-07-31 16:19:49.918740'

e.g. https://stackoverflow.com/questions/62937930/postgres-timestamp-with-microseconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant