Example #1
0
    def test_default_timezone(self):
        self.assertTrue(os_default_timezone() == default_timezone() == 'UTC')

        reg = getUtility(IRegistry)
        settings = reg.forInterface(IEventSettings, prefix="plone.app.event")

        settings.portal_timezone = "Europe/Vienna"
        self.assertTrue(default_timezone() == 'Europe/Vienna')
    def test_default_timezone(self):
        assert os_default_timezone() == default_timezone() == "UTC"

        reg = getUtility(IRegistry)
        settings = reg.forInterface(IEventSettings, prefix="plone.app.event")

        settings.portal_timezone = "Europe/Vienna"
        assert default_timezone() == "Europe/Vienna"
    def test_default_timezone(self):
        self.assertTrue(os_default_timezone() == default_timezone() == 'UTC')

        registry = getUtility(IRegistry)
        registry['plone.portal_timezone'] = "Europe/Vienna"
        self.assertTrue(default_timezone() == 'Europe/Vienna')
    def test_default_timezone(self):
        self.assertTrue(os_default_timezone() == default_timezone() == "UTC")

        registry = getUtility(IRegistry)
        registry["plone.portal_timezone"] = "Europe/Vienna"
        self.assertTrue(default_timezone() == "Europe/Vienna")