MTG / freesound-datasets

A platform for the collaborative creation of open audio collections labeled by humans and based on Freesound content.
https://annotator.freesound.org/
GNU Affero General Public License v3.0
134 stars 12 forks source link

AmbiguousTimeError: 2019-10-27 02:33:44.795189 #179

Closed xavierfav closed 4 years ago

xavierfav commented 4 years ago

https://logserver.mtg.upf.edu/sentry/freesound-datasets/issues/1513/?referrer=github_plugin

AmbiguousTimeError: 2019-10-27 02:33:44.795189
(10 additional frame(s) were not displayed)
...
  File "datasets/tasks.py", line 209, in compute_annotators_ranking
    created_at__gt=reference_date, created_by=user, sound_dataset__dataset=dataset, type='MA').count()

AmbiguousTimeError: 2019-10-27 02:33:44.795189

Datetimes are abiguous because they do not include timezone information, Using django.utils.timezone should fix this.