Skip to content

Conversation

@sebix
Copy link
Member

@sebix sebix commented Mar 4, 2025

in intelmq.bots.parsers.misp.parser and intelmq.bots.parsers.cleanmx.parser Replace the deprecated datetime function utcfromtimestamp for Ubuntu 24.04 compatibility with fromtimestamp(..., UTC)

fixes #2576 related to #2571

@sebix sebix added bug Indicates an unexpected problem or unintended behavior component: bots labels Mar 4, 2025
@sebix sebix added this to the 3.3.2 Bugfix release milestone Mar 4, 2025
@sebix sebix requested review from elsif2 and kamil-certat and removed request for elsif2 March 4, 2025 21:23
@sebix
Copy link
Member Author

sebix commented Mar 4, 2025

Well, Python 3.10 doesn't have datetime.UTC, so it's a bit more complicated than I hoped....

@sebix
Copy link
Member Author

sebix commented Mar 4, 2025

Solution could be either use datetime.timezone.UTC or intelmq.lib.harmonization.DateTime.from_timestamp

in intelmq.bots.parsers.misp.parser and intelmq.bots.parsers.cleanmx.parser Replace the deprecated datetime function `utcfromtimestamp` for Ubuntu 24.04 compatibility with fromtimestamp(..., UTC)

fixes certtools#2576
related to certtools#2571
@sebix sebix merged commit f781c2c into certtools:develop Mar 5, 2025
22 checks passed
@sebix sebix deleted the fix-2576 branch March 5, 2025 11:05
@sebix sebix self-assigned this Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Indicates an unexpected problem or unintended behavior component: bots

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CleanMX and MISP parser call deprecated utcfromtimestamp

2 participants