Пример #1
0
 def test_falls_back_to_server_timezone_if_garbage_is_set_in_session_table(self):
     set_user_attribute_in_session(self.env, 'tz', "fnord", 'tm')
     member = self.tmm.create(name='tm')
     local_timezone_offset = localtz.utcoffset(now())
     self.assert_equals(local_timezone_offset, member.timezone().utcoffset(now()))
Пример #2
0
 def test_falls_back_to_server_timezone_if_none_is_set_in_session_table(self):
     member = self.tmm.create(name='tm')
     local_timezone_offset = localtz.utcoffset(now())
     self.assert_equals(local_timezone_offset, member.timezone().utcoffset(now()))