MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / get_publish_time

Function get_publish_time

vulnerabilities/importers/ruby.py:173–177  ·  view source on GitHub ↗
(record)

Source from the content-addressed store, hash-verified

171
172
173def get_publish_time(record):
174 date = record.get("date")
175 if not date:
176 return
177 return parse(date).replace(tzinfo=UTC)
178
179
180def get_summary(record):

Callers 1

parse_ruby_advisoryFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected