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

Use dtime.to_DT instead of api.to_date #96

Merged
merged 3 commits into from
Nov 19, 2023
Merged

Use dtime.to_DT instead of api.to_date #96

merged 3 commits into from
Nov 19, 2023

Conversation

xispa
Copy link
Member

@xispa xispa commented Nov 9, 2023

Description of the issue/feature this PR addresses

This Pull Request ensures there is no code calling to the function api.to_date that was flagged as deprecated with senaite/senaite.core#2401

Current behavior before PR

DeprecationWarning: Deprecated: use senaite.core.api.dtime.to_DT instead

Desired behavior after PR is merged

No deprecated message is displayed in terminal

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

@xispa xispa requested a review from ramonski November 9, 2023 12:59
@ramonski ramonski merged commit 599f186 into master Nov 19, 2023
@ramonski ramonski deleted the use-dtime-to_DT branch November 19, 2023 09:33
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