[forge:site-support:#765]
When we upgraded, all of our news articles had their pubDate set to the time that the upgrade occurred. The date is still set correctly on the news page https://sourceforge.net/p/warlock/news/ .
Incorrect dates can be seen here: https://sourceforge.net/p/warlock/news/feed
Created #196: [#5013] Set proper pubDate for news in RSS feed during migration (1cp)
Related
Tickets:
#5013Closed #196. Branch 42cc_5013 in allura repo.
The problem requires a fix just in allura repo. We've changed
BlogPost.commit
method to use date of post publication when creating aFeed
item, so feed dates will be set properly during migration.There is one potential sneaky bug in here. In python, default values for arguments are bound once when the class is loaded and not each time the method is run. So pubdate could be stuck at one time. Trivial example:
Oh, and the general way to work around this is like:
Ow, that's right, we'll fix that.
Created #201: [#5013] Don't use utcnow in default value for pubdate argument (1cp)
Related
Tickets:
#5013Closed #201. All changes in 42cc_5013.