%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 Wells <dbw2@calvin.edu>
Tue, 21 Jan 2014 19:57:42 +0000 (14:57 -0500)
Thanks again to the indefatiguable Ben Shum for this catch!

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
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);