-
Notifications
You must be signed in to change notification settings - Fork 7
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 assume timezone #8
Conversation
FYI, if you want to prevent traits like |
Wow thanks a lot I had no idea this existed. I'll try looking into this. |
…d a crate feature to allow using of the timezone utilities in the library instead of pulling the entire IANA db.
I've applied the new API changes with the sealed trait trick. I've also included a feature to allow removing the tz database with this 1.0 release. The feature is there in case you wanted to use your own custom timezone database or maybe even use the system database instead of the built-in one. |
This PR finally fixes the behavior of
assume_timezone
andassume_timezone_utc
. Theassume_timezone
function is now fixed to always assume the inputPrimitiveDateTime
is already in the target timezone. Theassume_timezone_utc
preserves the old behavior of assuming the inputPrimitiveDateTime
is actually in UTC.Fixes #5
Fixes #6