| Index: filters/humanize_date.py |
| diff --git a/filters/humanize_date.py b/filters/humanize_date.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..322758bd41bb23905f74ef3254a133f48b2382d2 |
| --- /dev/null |
| +++ b/filters/humanize_date.py |
| @@ -0,0 +1,6 @@ |
| +import datetime, copy |
|
Sebastian Noack
2016/02/04 11:05:06
The import for the "copy" module isn't necessary a
juliandoucette
2016/02/04 11:18:39
Done. Good catch.
|
| + |
| +def humanize_date(date): |
| + return datetime.datetime.strftime( |
|
Sebastian Noack
2016/02/04 11:05:06
Simply, call methods on the instance itself, not o
juliandoucette
2016/02/04 11:18:39
Done. I was copying the style of the previous date
|
| + datetime.datetime.strptime(date, "%Y-%m-%d"), |
| + "%B %d, %Y") |