mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Switching timestamp to better calculator that doesn't spit out -1's. Matches c469608
and fixes #1671.
This commit is contained in:
parent
9e21d03255
commit
92f48a0821
1 changed files with 3 additions and 3 deletions
|
@ -1029,7 +1029,7 @@ def load_starred_stories(request):
|
|||
story['long_parsed_date'] = format_story_link_date__long(story_date, nowtz)
|
||||
starred_date = localtime_for_timezone(story['starred_date'], user.profile.timezone)
|
||||
story['starred_date'] = format_story_link_date__long(starred_date, nowtz)
|
||||
story['starred_timestamp'] = starred_date.strftime('%s')
|
||||
story['starred_timestamp'] = int(starred_date.timestamp())
|
||||
story['read_status'] = 1
|
||||
story['starred'] = True
|
||||
story['intelligence'] = {
|
||||
|
@ -1354,7 +1354,7 @@ def load_read_stories(request):
|
|||
starred_date = localtime_for_timezone(starred_story['starred_date'],
|
||||
user.profile.timezone)
|
||||
story['starred_date'] = format_story_link_date__long(starred_date, now)
|
||||
story['starred_timestamp'] = starred_date.strftime('%s')
|
||||
story['starred_timestamp'] = int(starred_date.timestamp())
|
||||
if story['story_hash'] in shared_stories:
|
||||
story['shared'] = True
|
||||
story['shared_comments'] = strip_tags(shared_stories[story['story_hash']]['comments'])
|
||||
|
@ -1533,7 +1533,7 @@ def load_river_stories__redis(request):
|
|||
starred_date = localtime_for_timezone(starred_stories[story['story_hash']]['starred_date'],
|
||||
user.profile.timezone)
|
||||
story['starred_date'] = format_story_link_date__long(starred_date, now)
|
||||
story['starred_timestamp'] = starred_date.strftime('%s')
|
||||
story['starred_timestamp'] = int(starred_date.timestamp())
|
||||
story['user_tags'] = starred_stories[story['story_hash']]['user_tags']
|
||||
story['user_notes'] = starred_stories[story['story_hash']]['user_notes']
|
||||
story['highlights'] = starred_stories[story['story_hash']]['highlights']
|
||||
|
|
Loading…
Add table
Reference in a new issue