usage of timezone
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user