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

Add BsonDate.toSysTime(tz) overload #2252

merged 1 commit into from Jan 14, 2019


Copy link

@WebFreak001 WebFreak001 commented Jan 12, 2019

Otherwise right now when using the Bson constructor taking a date with null timezone, it will take the local time. When the local time timezone is negative and you want to convert back from BsonDate to SysTime to Date, you will be a day behind than what you originally input because you can only convert to SysTime using UTC.

@s-ludwig s-ludwig merged commit 99168f8 into vibe-d:master Jan 14, 2019
3 checks passed
@WebFreak001 WebFreak001 deleted the bsondate-systime branch Jan 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants