Review the use of datetime.date().today in schooltool.

Bug #80127 reported by Ignas Mikalajūnas
8
Affects Status Importance Assigned to Milestone
SchoolTool
Confirmed
Medium
Unassigned

Bug Description

datetime.date.today() returns the date that matches the timezone of the server,
though we should use tz.localize(datetime.datetime.utcnow()).date() to get the
"today" of the user and datetime.datetime.utcnow().date() to get the UTC today.

Changed in schooltool:
assignee: nobody → ignas
Changed in schooltool:
status: New → Triaged
Changed in schooltool:
status: Triaged → In Progress
Revision history for this message
Tom Hoffman (tom-hoffman) wrote :

This still in progress ;-)

Revision history for this message
Justas Sadzevičius (justas.sadzevicius) wrote :

I have a hunch that it is not that much in progress now.

Changed in schooltool:
assignee: Ignas Mikalajūnas (ignas) → nobody
status: In Progress → Confirmed
tags: added: datetime
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.