What's the most efficient way to query for objects created today (or for a specific day a given number of days in the past) in a timezone aware way in Django?
I know there are a lot of questions about this, but most answers don't incorporate timezone awareness, there doesn't seem to be any definitive recent answers, and most solutions will produce the naive datetime warning:
RuntimeWarning: DateTimeField received a naive datetime (2012-10-23 00:00:00) while time zone support is active.
I'm running Django 1.5 with timezone support and am using pytz and the UTC timezone throughout.