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 timestamp with timezone #891

Merged
merged 2 commits into from
May 27, 2024
Merged

Fix timestamp with timezone #891

merged 2 commits into from
May 27, 2024

Conversation

hayssams
Copy link
Contributor

No description provided.

@tiboun
Copy link
Collaborator

tiboun commented May 25, 2024

LGTM, so it seems that java.sql.timestamp is affected by the current timezone and when we get the value from a LocalDate, it doesn't. Am I right ? If so good to know !

I've tried this as well PrimitiveType.timestamp.fromString("2011-12-03T10:15:30+01:00[Europe/Paris]", "ISO_ZONED_DATE_TIME", "UTC") and it works like a charm, timestamp is given in UTC as expected.

Thanks @hayssams

@hayssams hayssams merged commit e80a169 into master May 27, 2024
4 of 5 checks passed
@hayssams hayssams deleted the fix/timestamp-with-timezone branch May 27, 2024 14:09
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

Successfully merging this pull request may close these issues.

None yet

2 participants