Hi,

I have created a middleware that calls timezone.activate like this:

from pytz import timezone as tz
timezone.activate(tz('Etc/GMT+3'))

I when printing the time 20:20 UTC+0 it shows as 17:20

I even tried to use

{% timezone "Etc/GMT+3" %}
    {{ value }}
{% endtimezone %}

but it still shows 17:20 when it should show 23:20
of course if I use
{% timezone "Etc/GMT-3" %}
    {{ value }}
{% endtimezone %}

it shows the correct time. is there a bug when using GMT+offset timezone
instead of the regular Zone/Country

if anyone is wondering why I am doing this let me try to explain myself.
When a user logs in using facebook I can get the timezone from the
extra_data, facebook calculates DST and returns a number

thanks
avraham

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to