[Rt-commit] r13754 - in rt/3.8/trunk: . sbin
sartak at bestpractical.com
sartak at bestpractical.com
Thu Jul 3 05:31:20 EDT 2008
Author: sartak
Date: Thu Jul 3 05:31:16 2008
New Revision: 13754
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/sbin/rt-email-dashboards.in
rt/3.8/trunk/share/html/Dashboards/Subscription.html
Log:
r63657 at onn: sartak | 2008-07-03 05:31:01 -0400
Default the dashboard timezone to the system's tz instead of UTC. see also rt3.fsck.com #9952
Modified: rt/3.8/trunk/sbin/rt-email-dashboards.in
==============================================================================
--- rt/3.8/trunk/sbin/rt-email-dashboards.in (original)
+++ rt/3.8/trunk/sbin/rt-email-dashboards.in Thu Jul 3 05:31:16 2008
@@ -142,7 +142,7 @@
next;
}
- my ($hour, $dow, $dom) = hour_dow_dom_in($user->Timezone || 'UTC');
+ my ($hour, $dow, $dom) = hour_dow_dom_in($user->Timezone || RT->Config->Get('Timezone'));
$hour .= ':00';
vverbose "Checking [_1]'s subscriptions: hour [_2], dow [_3], dom [_4]",
$user->Name, $hour, $dow, $dom;
Modified: rt/3.8/trunk/share/html/Dashboards/Subscription.html
==============================================================================
--- rt/3.8/trunk/share/html/Dashboards/Subscription.html (original)
+++ rt/3.8/trunk/share/html/Dashboards/Subscription.html Thu Jul 3 05:31:16 2008
@@ -168,7 +168,7 @@
my ($title, @results);
my ($val, $msg);
my $Loaded = 0;
-my $timezone = eval{$session{'CurrentUser'}->UserObj->Timezone} || 'UTC';
+my $timezone = $session{'CurrentUser'}->UserObj->Timezone || RT->Config->Get('Timezone');
use RT::Dashboard;
my $DashboardObj = RT::Dashboard->new($session{'CurrentUser'});
More information about the Rt-commit
mailing list