Skip to content

Commit

Permalink
that was first started at Arnhemsprint 2013, so...
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed Apr 15, 2014
1 parent 99578e1 commit 9ba4308
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plone/app/widgets/tests/test_dx.py
Expand Up @@ -301,8 +301,8 @@ def test_data_converter__timezone_id(self):
dt = datetime(2013, 11, 13, 10, 20)
setattr(context, self.field.getName(), dt)
self.widget.context = context
self.widget.default_timezone = 'Europe/Vienna'
tz = pytz.timezone('Europe/Vienna')
self.widget.default_timezone = 'Europe/Amsterdam'
tz = pytz.timezone('Europe/Amsterdam')

converter = DatetimeWidgetConverter(self.field, self.widget)
self.assertEqual(
Expand All @@ -324,8 +324,8 @@ def test_data_converter__timezone_callback(self):
dt = datetime(2013, 11, 13, 10, 20)
setattr(context, self.field.getName(), dt)
self.widget.context = context
self.widget.default_timezone = lambda: 'Europe/Vienna'
tz = pytz.timezone('Europe/Vienna')
self.widget.default_timezone = lambda: 'Europe/Amsterdam'
tz = pytz.timezone('Europe/Amsterdam')

converter = DatetimeWidgetConverter(self.field, self.widget)
self.assertEqual(
Expand Down

0 comments on commit 9ba4308

Please sign in to comment.