[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.6-303-g57e8a7d
Shawn Moore
sartak at bestpractical.com
Wed Dec 1 16:22:38 EST 2010
The branch, 3.9-trunk has been updated
via 57e8a7de1ed0e8e4cdf6dcf151bb9dfa28efed0f (commit)
from c6b8f6a3108a47d504db626919540e5d47e1067f (commit)
Summary of changes:
share/html/Elements/RT__Dashboard/ColumnMap | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 57e8a7de1ed0e8e4cdf6dcf151bb9dfa28efed0f
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Dec 1 16:22:26 2010 -0500
Localize the hour for Dashboard ColumnMap as well
diff --git a/share/html/Elements/RT__Dashboard/ColumnMap b/share/html/Elements/RT__Dashboard/ColumnMap
index 481412c..c7cf958 100644
--- a/share/html/Elements/RT__Dashboard/ColumnMap
+++ b/share/html/Elements/RT__Dashboard/ColumnMap
@@ -79,6 +79,17 @@ my $COLUMN_MAP = {
my $freq = $Subscription->SubValue('Frequency');
my $hour = $Subscription->SubValue('Hour');
+ if (my ($integer_hour) = $hour =~ /^(\d\d):00$/) {
+ my $formatter = RT::Date->new($session{CurrentUser})->LocaleObj;
+ my $dt = DateTime->now;
+ $dt->set_minute(0);
+ $dt->set_second(0);
+ $dt->set_hour($integer_hour);
+
+ # use the formatted hour instead
+ $hour = $dt->format_cldr($formatter->time_format_short);
+ }
+
if ($freq eq 'weekly') {
my $day = $Subscription->SubValue('Dow');
$frequency = loc("weekly (on [_1]) at [_2]", loc($day), $hour);
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list