Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: filters/humanize_dates.py

Issue 29334171: Issue 3410 - Added date sort / format for press releases (Closed)
Patch Set: Changing sort filters and utf8 charaters in release hrefs Created Feb. 2, 2016, 4:44 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « filters/datesort.py ('k') | filters/teamsort.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 import datetime, copy
2
3 def humanize_dates (unformatted_list):
Sebastian Noack 2016/02/02 16:50:21 Nit: No space before arguments list.
juliandoucette 2016/02/04 10:04:22 Done.
4 formatted_list = copy.deepcopy(unformatted_list);
5 for item in formatted_list:
Sebastian Noack 2016/02/02 16:50:21 While looking at the template, is there actually a
juliandoucette 2016/02/04 10:04:22 Done.
6 item[0] = datetime.datetime.strftime(
7 datetime.datetime.strptime(item[0], "%Y-%m-%d"),
8 "%B %d, %Y")
9 return formatted_list
OLDNEW
« no previous file with comments | « filters/datesort.py ('k') | filters/teamsort.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld