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

Wrong DST application #10

Open
loxs opened this issue Sep 22, 2018 · 1 comment
Open

Wrong DST application #10

loxs opened this issue Sep 22, 2018 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@loxs
Copy link
Collaborator

loxs commented Sep 22, 2018

Originally reported here by Petter Urkedal

The calendar library seems to apply DST of the current date rather than the date to be converted. From a locale time zone with DST, the following should show the problem:

Printer.Calendar.to_string (on (fun () -> Calendar.make 2015 1 1 10 00 00) UTC ());;
- : bytes = "2015-01-01 12:00:00"
Printer.Calendar.to_string (on (fun () -> Calendar.make 2015 7 1 10 00 00) UTC ());;
- : bytes = "2015-07-01 12:00:00"

As I'm in a CET with DST time zone I would expect the first to return 11:00:00.

Calendar version 2.03.2.

@loxs loxs added the bug Something isn't working label Sep 22, 2018
@loxs loxs added this to the 2.0 milestone Sep 22, 2018
@loxs
Copy link
Collaborator Author

loxs commented Sep 29, 2018

Caused by relying on global state, depends on #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant