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 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 people editing > the site, so the timing's off by the time delta between the two. > Is there a way to automatically adjust the time, or have everything > expressed in UTC, for example? Or should I just add the time delta to > datetime.now()? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

