summaryrefslogtreecommitdiffstats
path: root/bug_form.pl
diff options
context:
space:
mode:
authorjake%bugzilla.org <>2002-11-28 01:00:20 +0100
committerjake%bugzilla.org <>2002-11-28 01:00:20 +0100
commit0fcc20760ab4c49ec7e3b93f9025a9b0b8d2046b (patch)
treed0b0499d6800b30420d6a96eb3ac87e5b6ff1eec /bug_form.pl
parentbc3da73c9bfb25bab7416b473bdbcbed38d7ef3f (diff)
downloadbugzilla-0fcc20760ab4c49ec7e3b93f9025a9b0b8d2046b.tar.gz
bugzilla-0fcc20760ab4c49ec7e3b93f9025a9b0b8d2046b.tar.xz
Bug 67077 - We now include the timezone (as configured in editparams.cgi) on every time we display.
r=justdave a=justdave
Diffstat (limited to 'bug_form.pl')
-rw-r--r--bug_form.pl14
1 files changed, 2 insertions, 12 deletions
diff --git a/bug_form.pl b/bug_form.pl
index e390ad51e..b4a2ef678 100644
--- a/bug_form.pl
+++ b/bug_form.pl
@@ -85,8 +85,7 @@ sub show_bug {
bug_severity, bugs.component_id, components.name, assigned_to,
reporter, bug_file_loc, short_desc, target_milestone,
qa_contact, status_whiteboard,
- date_format(creation_ts,'%Y-%m-%d %H:%i'),
- delta_ts, sum(votes.count), delta_ts calc_disp_date,
+ DATE_FORMAT(creation_ts,'%Y.%m.%d %H:%i'), delta_ts, sum(votes.count),
estimated_time, remaining_time
FROM bugs LEFT JOIN votes USING(bug_id), products, components
WHERE bugs.bug_id = $id
@@ -111,19 +110,10 @@ sub show_bug {
"priority", "bug_severity", "component_id", "component",
"assigned_to", "reporter", "bug_file_loc", "short_desc",
"target_milestone", "qa_contact", "status_whiteboard",
- "creation_ts", "delta_ts", "votes", "calc_disp_date",
+ "creation_ts", "delta_ts", "votes",
"estimated_time", "remaining_time")
{
$value = shift(@row);
- if ($field eq "calc_disp_date") {
- # Convert MySQL timestamp (_ts) to datetime format(%Y-%m-%d %H:%i)
- $disp_date = substr($value,0,4) . '-';
- $disp_date .= substr($value,4,2) . '-';
- $disp_date .= substr($value,6,2) . ' ';
- $disp_date .= substr($value,8,2) . ':';
- $disp_date .= substr($value,10,2);
- $value = $disp_date;
- }
$bug{$field} = defined($value) ? $value : "";
}