Use UTC dates for stats

This commit is contained in:
rubenwardy 2022-11-06 19:12:43 +00:00
parent aa2996f92e
commit 0cb220acff

@ -1220,7 +1220,8 @@ class PackageDailyStats(db.Model):
@staticmethod
def update(package: Package, is_minetest: bool, reason: str):
date = datetime.date.today()
date = datetime.datetime.utcnow().date()
to_update = dict()
kwargs = {
"package_id": package.id, "date": date