]> git.openstreetmap.org Git - osqa.git/blob - forum/utils/time.py
allow only AJAX requests for post votes, otherwise it makes CSRF possible
[osqa.git] / forum / utils / time.py
1 import datetime
2
3 def one_day_from_now():
4     return datetime.datetime.now() + datetime.timedelta(days=1)