1
0
Fork 0
forked from github/pelican

Merge pull request #1533 from kernc/underscore_dates

Replace underscores in dates with spaces before parsing
This commit is contained in:
Justin Mayer 2015-02-18 09:14:37 -08:00
commit 88ec7026ea

View file

@ -30,7 +30,7 @@ from pelican.utils import get_date, pelican_open, FileStampDataCacher, SafeDatet
METADATA_PROCESSORS = {
'tags': lambda x, y: [Tag(tag, y) for tag in x.split(',')],
'date': lambda x, y: get_date(x),
'date': lambda x, y: get_date(x.replace('_', ' ')),
'modified': lambda x, y: get_date(x),
'status': lambda x, y: x.strip(),
'category': Category,