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

from-default-time-zone & to-default-time-zone do not appear to be inverses of one another #148

Open
johanatan opened this issue Sep 17, 2024 · 2 comments

Comments

@johanatan
Copy link

johanatan commented Sep 17, 2024

and further, there does not seem to be a way to express a time in the local time zone and have it represented or converted to UTC.

see:

=> (t/from-utc-time-zone (t/date-time 2024 9 10 6 30))
#object[Object 20240910T063000]
=> (t/date-time 2024 9 10 6 30)
#object[Object 20240910T063000]
=> (t/to-default-time-zone (t/date-time 2024 9 10 6 30))
#object[Object 20240909T233000]
=> (t/from-default-time-zone (t/to-default-time-zone (t/date-time 2024 9 10 6 30)))
#object[Object 20240909T233000]
=> (t/from-default-time-zone (t/date-time 2024 9 10 6 30))
#object[Object 20240910T063000]
@johanatan
Copy link
Author

I am in the Pacific timezone, so I want a UTC value of 13:30 here by expressing 6:30. i.e., +7 hours offset.

@johanatan
Copy link
Author

anyone? this seems like a pretty serious issue for such a common operation.

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