﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11227	tutorial #02 -	anon_who_is_annoyed_by_spam_filter	nobody	"http://docs.djangoproject.com/en/dev/intro/tutorial02/#intro-tutorial02

Code part:

{{{

def was_published_today(self):
    return self.pub_date.date() == datetime.date.today()

}}}

This baffled me for some time - after adding anything I got false. The problem was with time zones - Django's settings.py had another time zone.

I would add a small comment in the documentation, or change datetime.date.today() to some function which respects time zone in settings.py."		closed	Documentation	1.0		wontfix			Unreviewed	0	0	0	0	0	0
