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

Make to_ymd return a compliant ymd when no elapsed days #78

Merged
merged 4 commits into from
May 19, 2023

Conversation

xispa
Copy link
Member

@xispa xispa commented May 19, 2023

Description of the issue/feature this PR addresses

This Pull Request makes the api.to_ymd function to return a compliant ymd when no elapsed days

Current behavior before PR

When no days elapsed, to_ymd returns an empty string

Desired behavior after PR is merged

When no days elapsed, to_ymd returns 0d, that is ymd-compliant

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

@ramonski ramonski merged commit 1b45355 into master May 19, 2023
@ramonski ramonski deleted the ymd-compliant-when-empty branch May 19, 2023 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants