﻿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
16668	Problem with was_published_today()	dan.j.hakimi@…	nobody	"On https://docs.djangoproject.com/en/1.3/intro/tutorial01/, you write the following function:


{{{
def was_published_today(self):
        return self.pub_date.date() == datetime.date.today()
}}}


This doesn't work (I tried it), as ""today"" returns a full datetime, instead of just a date (odd, I guess). Instead, you want:


{{{
def was_published_today(self):
        return self.pub_date.date() == datetime.date.today().date()
}}}


Or something else that works."	Bug	closed	Documentation	1.3	Normal	worksforme			Accepted	0	0	0	0	1	0
