Skip to content

Commit

Permalink
Fix timezone format
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosal1015 committed Nov 11, 2024
1 parent 780dad7 commit 5b584a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builder/download-depends.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def resolve_depends(repository, pkgbase, result, key='depends'):
status = Status.objects.get(key=pkgbase)
except:
raise Exception(f'Cannot find {pkgbase} in the database.')

status.timestamp = status.timestamp.replace(tzinfo=None)

if datetime.now() - status.timestamp > timedelta(days=1):
pacman_packages.append(f'{config["pacman"]["repository"]}/{pkgname}')
Expand Down

0 comments on commit 5b584a7

Please sign in to comment.