Skip to content

date 'h' format fix #30

merged 1 commit into from Jun 8, 2012

2 participants



Just a quick fix for date 'h' formatting (12-hour, leading zero). It was trying to do integer_to_list twice. Threw in some extra unit tests while I was at it.

I came to this by way of ChicagoBoss. New to it, but loving it!


Colin MacDonald Fixed date formatting for 'h', added tests.
Removed extra integer_to_list conversion from tag_to_value/3 for $h.
Added tests for "h", "H", "i", and "Y" to each test case.

"Extra unit tests" are music to my ears. Thanks for the patch!

@evanmiller evanmiller merged commit 9aa03d7 into erlydtl:master Jun 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.