MOHOAzure / FB-auto-reporter

A fb page bot automatically collects news and makes reports
2 stars 0 forks source link

the morning news reports yesterday's news #10

Closed MOHOAzure closed 3 years ago

MOHOAzure commented 3 years ago

fix time checking in fb news collector.

datetime.today().date() returns date of the machine.

For a user residents in a time zone different from the machine, the user may get news create in yesterday. For example, a machine is in UTC+0, a user is in UTC+8, and a news is created in 2020-11-30 08:00:01 in UTC+8, the date of the news is considered as 'today' by the machine but not by the user.