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

When used as a library, current date is fixed at import time and not updated #773

Closed
jennifer-richards opened this issue May 10, 2022 · 0 comments · Fixed by #774
Closed
Assignees
Labels
bug Something isn't working major

Comments

@jennifer-richards
Copy link
Member

When xml2rfc is imported and used as a library, it fixes the current date at import time (via datetime.date.today()) and does not update this. If the process using the library is long-lived, this causes files to be assigned incorrect dates.

Some care is needed in fixing this. When xml2rfc is used as a standalone program, this behavior may protect against date skew if run near midnight. (Just a guess)

This is probably causing ietf-tools/datatracker#3944

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

Successfully merging a pull request may close this issue.

1 participant