Skip to content

Commit 475bb96

Browse files
committed
Fix npm importer date manipulation
Signed-off-by: Shivam Sandbhor <shivam@crowdsec.net>
1 parent 2fc05f0 commit 475bb96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • vulnerabilities/importers

vulnerabilities/importers/npm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def process_file(self, file) -> List[Advisory]:
8686
package_name = record["module_name"].strip()
8787

8888
publish_date = parse(record["updated_at"])
89-
publish_date.replace(tzinfo=pytz.UTC)
89+
publish_date = publish_date.replace(tzinfo=pytz.UTC)
9090

9191
all_versions = self.versions.get(package_name, until=publish_date).valid_versions
9292
aff_range = record.get("vulnerable_versions")

0 commit comments

Comments
 (0)