scrapydweb icon indicating copy to clipboard operation
scrapydweb copied to clipboard

scheduler timezone

Open xlpxxx opened this issue 6 years ago • 6 comments

  File "/usr/local/lib/python3.6/dist-packages/tzlocal/utils.py", line 38, in assert_tz_offset
    raise ValueError(msg)
ValueError: Timezone offset does not match system offset: 7200 != 28800. Please, check your config files.

eg:

_sched = BackgroundScheduler(timezone="Asia/Shanghai")

schdu_timezone variable should be added to the settings.py configuration

xlpxxx avatar Oct 07 '19 14:10 xlpxxx

It’s better to configure the timezone of your server instead, then restart ScrapydWeb.

my8100 avatar Oct 08 '19 01:10 my8100

修改过了,就会提示这个,只有utc才正常

xlpxxx avatar Oct 08 '19 05:10 xlpxxx

Related issue from repo tzlocal: https://github.com/regebro/tzlocal/issues/73 What’s the OS and timezone of your host?

my8100 avatar Oct 08 '19 12:10 my8100

Germany ubuntu was originally utc time zone, use tzselect to change to Asia/Shanghai prompt time zone offset error

xlpxxx avatar Oct 08 '19 12:10 xlpxxx

Hi, I met this issue also ,is there any method to resolve it?

IanXuCode avatar Mar 29 '21 03:03 IanXuCode

same issue here

brickyang avatar Oct 06 '21 07:10 brickyang