Hi Daniel,

On 10/17/2014 09:14 AM, Daniel Grace wrote:
> I have the time zone set as follows:
> TIME_ZONE='Europe/London'
> USE_TZ = True
> 
> This is the same as GMT.  But what I want is BST (British Summer Time)
> for display purposes, which is UTC + 1 for the "summer" and UTC for the
> rest of the year.

According to
http://en.wikipedia.org/wiki/List_of_tz_database_time_zones, the
Europe/London timezone _is_ UTC+1 for the summer and UTC the rest of the
year. So it seems like there may not be anything you need to do.

> How do I convert to this the value in my templates?

If you want all datetimes displayed in a different timezone than your
TIME_ZONE setting (which really only makes sense if you track each
user's timezone and set the active timezone per-request based on the
user - otherwise just set TIME_ZONE to the one you want to use), you use
timezone.activate():
https://docs.djangoproject.com/en/1.7/topics/i18n/timezones/#selecting-the-current-time-zone

Carl

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5441381A.4090403%40oddbird.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to