Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Get or set system timezone.

Pass None to parameter config (as default) to get timezone,
or pass timezone full name like 'Asia/Shanghai' to set timezone.

src/m/o/MoleSys-HEAD/lib/serverM/mate/web.py   MoleSys(Download)
            self.write(si.Server.datetime(asstruct=True))
        elif sec == 'timezone':
            self.write({'timezone': sc.Server.timezone(self.inifile)})
        elif sec == 'timezone_list':
            if region == None:
        if sec == 'timezone':
            timezone = self.get_argument('timezone', '')
            if sc.Server.timezone(self.inifile, _u(timezone)):
                self.write({'code': 0, 'msg': u'时区设置保存成功!'})
            else: