%l instead of %H if we're using AM/PM for default time formats
authorDan Scott <dscott@laurentian.ca>
Mon, 6 Jan 2014 18:19:17 +0000 (13:19 -0500)
committerDan Scott <dscott@laurentian.ca>
Mon, 6 Jan 2014 18:19:17 +0000 (13:19 -0500)
Thanks again to the indefatiguable Ben Shum for this catch!

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/opac/parts/library/hours.tt2

index 823701c..d66832f 100644 (file)
@@ -1,7 +1,7 @@
 [% time_format = ctx.get_org_setting(ctx.library.id, 'format.time');
 
-   UNLESS time_fmt;
-       time_format = '%H:%M %p';
+   UNLESS time_format;
+       time_format = '%l:%M %p';
    END;
 
    USE date (format = time_format);