work on timezone

This commit is contained in:
bkfox
2017-05-10 17:19:59 +02:00
parent b3c0547ce6
commit e47e2a858e
6 changed files with 93 additions and 77 deletions

View File

@ -186,7 +186,7 @@ class Monitor:
that still have to be played. If there is not, return None
"""
station = self.station
now = tz.make_aware(tz.datetime.now())
now = tz.now()
diff_log = station.get_played(models = Diffusion) \
.order_by('date').last()