Re: Different time zone for server and editors screwing up show_from__lte = datetime.now()

2008-06-03 Thread Rodrigo Culagovski
Forgot: timezone is set correctly: TIME_ZONE = 'America/Santiago' The server is in Houston, USA: On Jun 3, 9:16 pm, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > I have a Banner model with a show_from DateTimeField, which I filter > to make sure I'm only showing them after they're due, like

Different time zone for server and editors screwing up show_from__lte = datetime.now()

2008-06-03 Thread Rodrigo Culagovski
I have a Banner model with a show_from DateTimeField, which I filter to make sure I'm only showing them after they're due, like so: from datetime import datetime current_banners = Banner.objects.filter(show_from__lte = datetime.now()) However, the server is not in the same time zone as the