mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a regression that broke scheduling a new news download in timezones west of GMT
Dont write a last_downloaded date of 0001-01-01 for newly scheduled recipes
This commit is contained in:
parent
ea38ac5aaa
commit
956b449091
@ -15,7 +15,7 @@ from lxml.builder import ElementMaker
|
||||
|
||||
from calibre import force_unicode
|
||||
from calibre.utils.iso8601 import parse_iso8601
|
||||
from calibre.utils.date import now as nowf, utcnow, local_tz, isoformat, fromordinal, UNDEFINED_DATE
|
||||
from calibre.utils.date import now as nowf, utcnow, local_tz, isoformat, EPOCH, UNDEFINED_DATE
|
||||
from calibre.utils.recycle_bin import delete_file
|
||||
|
||||
NS = 'http://calibre-ebook.com/recipe_collection'
|
||||
@ -298,7 +298,7 @@ class SchedulerConfig(object):
|
||||
self.root.remove(x)
|
||||
break
|
||||
if last_downloaded is None:
|
||||
last_downloaded = fromordinal(1)
|
||||
last_downloaded = EPOCH
|
||||
sr = E.scheduled_recipe({
|
||||
'id' : recipe.get('id'),
|
||||
'title': recipe.get('title'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user