Some SQL under lib/ranking/ relies on local time whereas timestamps in the database are UTC #1

Closed
khanku opened this Issue Oct 4, 2010 · 1 comment

Comments

Projects
None yet
2 participants

khanku commented Oct 4, 2010

The function datetime.datetime.now() is used to construct SQL constraints in some in some files under lib/ranking/ which leads python to use the local time which might differ from UTC. But all timestamps in the database are UTC.
This leads to disappearing results on some setup. Changing the system clock to UTC fixes this bug although it's obviously not a solution.

Owner

Rafiot commented Oct 4, 2010

Fixed by your own patch, thanks :)

Rafiot added a commit that referenced this issue May 6, 2012

Merge pull request #1 from serranos/modules-maintenance
Replacing discontinued module amada by module palevo also from Abuse.ch.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment