adapter_royalroadcom: fix for ancient bug reading unixtime attr that's come back after years.

This commit is contained in:
Jim Miller 2021-11-01 20:09:09 -05:00
parent 605fc0dbcf
commit da5ec5b357

View file

@ -61,6 +61,7 @@ class RoyalRoadAdapter(BaseSiteAdapter):
# locale dates differ but the timestamp is easily converted
timetag = parenttag.find('time')
if timetag.has_attr('unixtime'):
ts = timetag['unixtime']
return datetime.fromtimestamp(float(ts))
else:
## site has gone to crappy resolution "XX