date 'h' format fix #30

Merged
merged 1 commit into from Jun 8, 2012

Conversation

Projects
None yet
2 participants
@bluegraybox

Hi,

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!

Thanks,
Colin

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.
@evanmiller

This comment has been minimized.

Show comment Hide comment
@evanmiller

evanmiller Jun 8, 2012

Contributor

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

Contributor

evanmiller commented Jun 8, 2012

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

evanmiller added a commit that referenced this pull request Jun 8, 2012

@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