Commit 1077744f authored by Aurel's avatar Aurel

datetime : provide in UI all timezones supported by the DateTime library

also commit the new values on the fields "date" in proxy field libraries as
they are not automatically recomputed for now when changing config on a proxy
field
parent 8623b532
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import string import string
from DummyField import fields from DummyField import fields
from DocumentTemplate.DT_Util import html_quote from DocumentTemplate.DT_Util import html_quote
from DateTime import DateTime from DateTime import DateTime, Timezones
from cgi import escape from cgi import escape
import types import types
from DocumentTemplate.ustr import ustr from DocumentTemplate.ustr import ustr
...@@ -1280,9 +1280,7 @@ class MultiCheckBoxWidget(MultiItemsWidget): ...@@ -1280,9 +1280,7 @@ class MultiCheckBoxWidget(MultiItemsWidget):
MultiCheckBoxWidgetInstance = MultiCheckBoxWidget() MultiCheckBoxWidgetInstance = MultiCheckBoxWidget()
gmt_timezones = [('GMT%s' %zone, 'GMT%s' %zone,) for zone in range(-12, 0)]\ gmt_timezones = [(x, x) for x in sorted(set(Timezones()))]
+ [('GMT', 'GMT',),] \
+ [('GMT+%s' %zone, 'GMT+%s' %zone,) for zone in range(1, 13)]
class DateTimeWidget(Widget): class DateTimeWidget(Widget):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment