Index: filters/humanize_date.py |
diff --git a/filters/humanize_date.py b/filters/humanize_date.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2c187e64f32a7a257511d165622d3f7ac0930520 |
--- /dev/null |
+++ b/filters/humanize_date.py |
@@ -0,0 +1,6 @@ |
+from datetime import datetime |
+ |
+def humanize_date(date): |
+ return datetime.strftime( |
Sebastian Noack
2016/02/04 11:31:42
That is not what I meant. You still call the strft
juliandoucette
2016/02/09 16:01:16
Done.
|
+ datetime.strptime(date, "%Y-%m-%d"), |
+ "%B %d, %Y") |