Modify ↓
#12799 closed defect (fixed)
RSS of timeline shows incorrectly same time for all entries
Reported by: | Jun Omae | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.3.2 |
Component: | timeline | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
$ curl -s 'https://trac.edgewall.org/timeline?max=10&format=rss' | grep -F '<pubDate>' <pubDate>Sun, 07 May 2017 22:00:00 GMT</pubDate> <pubDate>Sun, 07 May 2017 22:00:00 GMT</pubDate> <pubDate>Sun, 07 May 2017 22:00:00 GMT</pubDate> <pubDate>Sun, 07 May 2017 22:00:00 GMT</pubDate> <pubDate>Sun, 07 May 2017 22:00:00 GMT</pubDate> <pubDate>Sun, 07 May 2017 22:00:00 GMT</pubDate> <pubDate>Sun, 07 May 2017 22:00:00 GMT</pubDate> <pubDate>Sun, 07 May 2017 22:00:00 GMT</pubDate> <pubDate>Sun, 07 May 2017 22:00:00 GMT</pubDate> <pubDate>Sun, 07 May 2017 22:00:00 GMT</pubDate>
Attachments (0)
Change History (4)
comment:2 by , 8 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
I'll add test coverage.
-
trac/timeline/templates/timeline.rss
diff --git a/trac/timeline/templates/timeline.rss b/trac/timeline/templates/timeline.rss index 75347908d..f4369c366 100644
a b 37 37 # with author = event.author 38 38 # include 'author_or_creator.rss' 39 39 # endwith 40 <pubDate>${http_date(event.date )}</pubDate>40 <pubDate>${http_date(event.datetime)}</pubDate> 41 41 <link>${abs_url}</link> 42 <guid isPermaLink="false">${abs_url}/${event.date uid}</guid>42 <guid isPermaLink="false">${abs_url}/${event.datetime_uid}</guid> 43 43 <description>${ 44 44 event.render('description', context)|forceescape 45 45 }</description> -
trac/timeline/web_ui.py
diff --git a/trac/timeline/web_ui.py b/trac/timeline/web_ui.py index 2395a14c7..9271d1677 100644
a b class TimelineModule(Component): 375 375 localized_date = truncate_datetime(localized_datetime) 376 376 datetime_uid = to_utimestamp(localized_datetime) 377 377 return {'kind': kind, 'author': author, 'date': localized_date, 378 'datetime': localized_datetime, 'render': render, 378 'datetime': localized_datetime, 'datetime_uid': datetime_uid, 379 'render': render, 379 380 'unread': lastvisit and lastvisit < datetime_uid, 380 381 'event': event, 'data': data, 'provider': provider}
comment:3 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 by , 8 years ago
Thanks for the fixing and deploying! I'm retrieving changes with Thunderbird via rss feed now.
Note:
See TracTickets
for help on using tickets.
Looks like a regression in r15713.
trac/timeline/templates/timeline.rss
)}</pubDate>is a partial patch, though I didn't realize
dateuid
field was used inrss
template, so that also needs to be fixed.