[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.6-302-gc6b8f6a
Shawn Moore
sartak at bestpractical.com
Wed Dec 1 16:17:02 EST 2010
The branch, 3.9-trunk has been updated
via c6b8f6a3108a47d504db626919540e5d47e1067f (commit)
from 3e726caa4d452455951f92921d1c6e93e3503fa3 (commit)
Summary of changes:
share/html/Dashboards/Subscription.html | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit c6b8f6a3108a47d504db626919540e5d47e1067f
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Dec 1 16:16:33 2010 -0500
Use only the HH:00 format internally
diff --git a/share/html/Dashboards/Subscription.html b/share/html/Dashboards/Subscription.html
index dd11728..3ebaf66 100644
--- a/share/html/Dashboards/Subscription.html
+++ b/share/html/Dashboards/Subscription.html
@@ -146,11 +146,13 @@
% for my $hour (0..23) {
% $dt->set_hour($hour);
% my $formatted = $dt->format_cldr($formatter->time_format_short);
-% my $selected = $formatted eq $fields{'Hour'}
+
+% my $value = my $formatted = sprintf '%02d:00', $hour;
+% my $selected = $value eq $fields{'Hour'}
% ? 'selected="selected"'
% : '';
- <option value="<% $formatted %>" <%$selected|n %>><% $formatted %></option>
+ <option value="<% $value %>" <%$selected|n %>><% $formatted %></option>
% }
</select>
(<%$timezone%>)
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list