abakan-zz / ablog

ABlog for blogging with Sphinx
ablog.readthedocs.org
Other
122 stars 34 forks source link

Date parsing #40

Closed amaloney closed 9 years ago

amaloney commented 9 years ago

This is my first pull request, so do let me know if I have done something wrong. I updated the code to use the dateutil.parser.parse function in ablog/post.py so that a user can use any reasonably formatted date object in the post directive.

Adding dateutil.parser.parse requires another dependency, however, the extensions to the datetime module in dateutil are quite nice and deserve a look if you are interested.

abakan-zz commented 9 years ago

Nothing major is wrong. You could have one commit, and request a merge to devel branch.

dateutil is a popular library, most people installing ablog might already have it. So, this is good. Thanks.