summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-02-10 08:06:22 +0100
committerlpsolit%gmail.com <>2007-02-10 08:06:22 +0100
commit25f6509fe6d2e3adea4cb2ead7265e3a2d1536b7 (patch)
treefe701e1b90b069f7a13ba070110f7b16f0c62af5 /buglist.cgi
parentbe11b7c3a55ba11c683d1e813fb0c4a1be0ae70d (diff)
downloadbugzilla-25f6509fe6d2e3adea4cb2ead7265e3a2d1536b7.tar.gz
bugzilla-25f6509fe6d2e3adea4cb2ead7265e3a2d1536b7.tar.xz
Bug 369912: Buglists exported as iCalendar have wrong timestamps - Patch by Frédéric Buclin <LpSolit@gmail.com> r=myk a=LpSolit
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 7181c2199..122a917de 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -1018,13 +1018,13 @@ while (my @row = $buglist_sth->fetchrow_array()) {
# Put in the change date as a time, so that the template date plugin
# can format the date in any way needed by the template. ICS and Atom
# have specific, and different, date and time formatting.
- $bug->{'changedtime'} = str2time($bug->{'changeddate'});
+ $bug->{'changedtime'} = str2time($bug->{'changeddate'}, Bugzilla->params->{'timezone'});
$bug->{'changeddate'} = DiffDate($bug->{'changeddate'});
}
if ($bug->{'opendate'}) {
# Put in the open date as a time for the template date plugin.
- $bug->{'opentime'} = str2time($bug->{'opendate'});
+ $bug->{'opentime'} = str2time($bug->{'opendate'}, Bugzilla->params->{'timezone'});
$bug->{'opendate'} = DiffDate($bug->{'opendate'});
}