cygnal/server/tools.py
Phyks (Lucas Verney) a7792f5dbb Rework upvotes
Upvotes now reset the `datetime` field of the report, making it appear
as if it was newly reported. They also extend the lifetime for accidents
and GCUM.

This introduces database migrations as well.

Closes https://framagit.org/phyks/cyclassist/issues/41.
2018-09-12 13:51:53 +02:00

6 lines
85 B
Python

import arrow
def UTC_now():
return arrow.utcnow().replace(microsecond=0).naive