mgaitan / waliki

A wiki engine powered by Django and Git
http://waliki.pythonanywhere.com
BSD 3-Clause "New" or "Revised" License
309 stars 56 forks source link

Parse git commit date into a datetime object. #139

Closed wagnerflo closed 7 years ago

wagnerflo commented 7 years ago

Without this change the history.date dictionary item is the unmodified string taken from the git log output. This is makes it impossible to - for example - output it localized in the template. (At least without such hackery as implementing date parsing in a template tag.)

This patch adds a date_parsed!

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.2%) to 70.942% when pulling 1270e901edcb2d8c56efa1ae50366c6b8ac6d4be on wagnerflo:git-parse-date into 07306662181a8259bef63b39bb9a830c24a38283 on mgaitan:master.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.2%) to 70.942% when pulling 1270e901edcb2d8c56efa1ae50366c6b8ac6d4be on wagnerflo:git-parse-date into 07306662181a8259bef63b39bb9a830c24a38283 on mgaitan:master.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.2%) to 70.942% when pulling 1270e901edcb2d8c56efa1ae50366c6b8ac6d4be on wagnerflo:git-parse-date into 07306662181a8259bef63b39bb9a830c24a38283 on mgaitan:master.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.2%) to 70.942% when pulling 1270e901edcb2d8c56efa1ae50366c6b8ac6d4be on wagnerflo:git-parse-date into 07306662181a8259bef63b39bb9a830c24a38283 on mgaitan:master.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.2%) to 70.942% when pulling 1270e901edcb2d8c56efa1ae50366c6b8ac6d4be on wagnerflo:git-parse-date into 07306662181a8259bef63b39bb9a830c24a38283 on mgaitan:master.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.01%) to 71.117% when pulling ba172a7caebc36e0a9b62885bc85f59d513c43d1 on wagnerflo:git-parse-date into 07306662181a8259bef63b39bb9a830c24a38283 on mgaitan:master.