Skip to content

Commit 97822bc

Browse files
committed
Fix failing tests
Signed-off-by: Keshav Priyadarshi <[email protected]>
1 parent 26379a9 commit 97822bc

20 files changed

+1701
-1698
lines changed

src/fetchcode/package.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ def get_packages_from_listing(purl, source_archive_url, regex, ignored_files_and
10291029
continue
10301030

10311031
modified_time = file.modified
1032-
date = datetime.utcfromtimestamp(time.mktime(modified_time))
1032+
date = time.strftime("%Y-%m-%dT%H:%M:%S", modified_time)
10331033

10341034
download_url = urljoin(source_archive_url, file.name)
10351035
package_url = PackageURL(
@@ -1042,7 +1042,7 @@ def get_packages_from_listing(purl, source_archive_url, regex, ignored_files_and
10421042
Package(
10431043
homepage_url=source_archive_url,
10441044
download_url=download_url,
1045-
release_date=date.isoformat(),
1045+
release_date=date,
10461046
**package_url.to_dict(),
10471047
)
10481048
)

0 commit comments

Comments
 (0)