mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Use UTC dates for stats
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user