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

No way to convert Datetime<FixedOffset> to Datetime<Local> #193

Closed
Yanpas opened this issue Nov 19, 2017 · 2 comments
Closed

No way to convert Datetime<FixedOffset> to Datetime<Local> #193

Yanpas opened this issue Nov 19, 2017 · 2 comments

Comments

@Yanpas
Copy link

Yanpas commented Nov 19, 2017

I'm using FixedOffset for parsing from txt and Local to obtain it from system. Seems there is no way to convert from first to second and vice versa. The only choice I have left is to use UTC. Is it by design?

@quodlibetor
Copy link
Contributor

Directly from one to the other must currently be done via UTC. There is a PR to add From impls in various directions, but it is ancient and no longer works.

I would really like for these From/Into to work.

@pitdicker
Copy link
Collaborator

This was implemented quite a while ago in #271.

@djc djc closed this as completed May 19, 2023
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

4 participants