Fixes #102
In SRFI-19 specification and the Guile Manual, ~I directive in
'date->string' will always print time hours as number in range of 01 to
12. However, current implmentation will print 00:00 as "00", this patch
will make it print "12" instead.
- module/srfi/srfi-19.scm (directives): In the callback procedure of #\I,
first check whether hour is zero, print 12 if so. - test-suite/tests/srfi-19.test: Add some tests for ~I directive.
- NEWS: Mention bug fixes.
Fixes #102
In SRFI-19 specification and the Guile Manual, ~I directive in
'date->string' will always print time hours as number in range of 01 to
12. However, current implmentation will print 00:00 as "00", this patch
will make it print "12" instead.
* module/srfi/srfi-19.scm (directives): In the callback procedure of #\I,
first check whether hour is zero, print 12 if so.
* test-suite/tests/srfi-19.test: Add some tests for ~I directive.
* NEWS: Mention bug fixes.