Scrapy 将时间向后显示 2 小时。值 2013-05-30 14:50:54 +0200 与 'start_time' 不同: datetime.datetime(2013, 5, 30, 12, 50, 53 , 860000)
2013-05-30 14:50:54+0200 [myspider] INFO: Dumping Scrapy stats:
{'downloader/request_bytes': 120,
'downloader/request_count': 1,
'downloader/request_method_count/GET': 1,
'downloader/response_bytes': 382,
'downloader/response_count': 1,
'downloader/response_status_count/200': 1,
'finish_reason': 'finished',
'finish_time': datetime.datetime(2013, 5, 30, 12, 50, 53, 887000),
'httpcache/hits': 1,
'log_count/DEBUG': 7,
'log_count/INFO': 4,
'response_received_count': 1,
'scheduler/dequeued': 1,
'scheduler/dequeued/memory': 1,
'scheduler/enqueued': 1,
'scheduler/enqueued/memory': 1,
'start_time': datetime.datetime(2013, 5, 30, 12, 50, 53, 860000)}
2013-05-30 14:50:54+0200 [myspider] INFO: Spider closed (finished)
在我的蜘蛛中,我有一个使用 datetime.datetime.now() 的变量,并且正确地分配了这个变量的时间戳。
是否可以在scrapy中设置时区?