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

fix conversion of empty Dates.CompoundPeriod() to zero units #50259

Merged
merged 3 commits into from
Jul 5, 2023

Conversation

vmpyr
Copy link
Contributor

@vmpyr vmpyr commented Jun 22, 2023

Closes: #50193

WRT the fix proposed by @Seelengrab in his comment. Thanks to him for providing the whole fix. This PR fixes the issue and adds a test for the new functionality.

@vmpyr vmpyr changed the title fix conversion of empty CompoundPeriod() to zero units fix conversion of empty Dates.CompoundPeriod() to zero units Jun 22, 2023
@vmpyr
Copy link
Contributor Author

vmpyr commented Jun 29, 2023

I think this can be merged now.

@stevengj stevengj added the merge me PR is reviewed. Merge when all tests are passing label Jun 29, 2023
@KristofferC KristofferC merged commit 1279de6 into JuliaLang:master Jul 5, 2023
@brenhinkeller brenhinkeller added dates Dates, times, and the Dates stdlib module and removed merge me PR is reviewed. Merge when all tests are passing labels Aug 8, 2023
@ararslan
Copy link
Member

I'd argue that this is a bugfix; any chance it can be backported for 1.10.5, @KristofferC?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dates Dates, times, and the Dates stdlib module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Method error when converting empty Dates.CompoundPeriod period
5 participants