usage of timezone

This commit is contained in:
Robert Einsle 2017-02-10 20:35:19 +01:00
parent 93028156b7
commit d516d830b6

View File

@ -22,7 +22,7 @@ def display_client(client, desk_no):
a = acc[-1] a = acc[-1]
if a.time_to is None: if a.time_to is None:
alert = 'alert-info' alert = 'alert-info'
prize = utils.get_prize_for(start=a.time_from, end=datetime.now(), pph=desk.prize) prize = utils.get_prize_for(start=a.time_from, end=datetime.now(timezone.utc), pph=desk.prize)
prize = '{0:.2f}'.format(prize) prize = '{0:.2f}'.format(prize)
if prize != a.prize: if prize != a.prize:
a.prize = prize a.prize = prize