Bug 937180: creation_ts of bugs and attachments always at 0 seconds
r=dkl, a=simon git-svn-id: svn://10.0.0.236/trunk@265115 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
a77be811b3
commit
2ed7b818d9
@ -1 +1 @@
|
|||||||
8813
|
8814
|
||||||
@ -59,22 +59,19 @@ use constant LIST_ORDER => ID_FIELD;
|
|||||||
use constant AUDIT_CREATES => 0;
|
use constant AUDIT_CREATES => 0;
|
||||||
use constant AUDIT_UPDATES => 0;
|
use constant AUDIT_UPDATES => 0;
|
||||||
|
|
||||||
sub DB_COLUMNS {
|
use constant DB_COLUMNS => qw(
|
||||||
my $dbh = Bugzilla->dbh;
|
attach_id
|
||||||
|
bug_id
|
||||||
return qw(
|
creation_ts
|
||||||
attach_id
|
description
|
||||||
bug_id
|
filename
|
||||||
description
|
isobsolete
|
||||||
filename
|
ispatch
|
||||||
isobsolete
|
isprivate
|
||||||
ispatch
|
mimetype
|
||||||
isprivate
|
modification_time
|
||||||
mimetype
|
submitter_id
|
||||||
modification_time
|
);
|
||||||
submitter_id),
|
|
||||||
$dbh->sql_date_format('attachments.creation_ts', '%Y.%m.%d %H:%i') . ' AS creation_ts';
|
|
||||||
}
|
|
||||||
|
|
||||||
use constant REQUIRED_FIELD_MAP => {
|
use constant REQUIRED_FIELD_MAP => {
|
||||||
bug_id => 'bug',
|
bug_id => 'bug',
|
||||||
|
|||||||
@ -71,6 +71,7 @@ sub DB_COLUMNS {
|
|||||||
bug_status
|
bug_status
|
||||||
cclist_accessible
|
cclist_accessible
|
||||||
component_id
|
component_id
|
||||||
|
creation_ts
|
||||||
delta_ts
|
delta_ts
|
||||||
estimated_time
|
estimated_time
|
||||||
everconfirmed
|
everconfirmed
|
||||||
@ -89,7 +90,6 @@ sub DB_COLUMNS {
|
|||||||
version
|
version
|
||||||
),
|
),
|
||||||
'reporter AS reporter_id',
|
'reporter AS reporter_id',
|
||||||
$dbh->sql_date_format('creation_ts', '%Y.%m.%d %H:%i') . ' AS creation_ts',
|
|
||||||
$dbh->sql_date_format('deadline', '%Y-%m-%d') . ' AS deadline',
|
$dbh->sql_date_format('deadline', '%Y-%m-%d') . ' AS deadline',
|
||||||
@custom_names);
|
@custom_names);
|
||||||
|
|
||||||
|
|||||||
@ -88,7 +88,7 @@ function toggle_display(link) {
|
|||||||
<br>
|
<br>
|
||||||
<a href="#attach_[% attachment.id %]"
|
<a href="#attach_[% attachment.id %]"
|
||||||
title="Go to the comment associated with the attachment">
|
title="Go to the comment associated with the attachment">
|
||||||
[%- attachment.attached FILTER time %]</a>,
|
[%- attachment.attached FILTER time("%Y-%m-%d %H:%M %Z") %]</a>,
|
||||||
|
|
||||||
[%# No need to recreate the exact same template if we already have it. %]
|
[%# No need to recreate the exact same template if we already have it. %]
|
||||||
[% attacher_id = attachment.attacher.id %]
|
[% attacher_id = attachment.attacher.id %]
|
||||||
|
|||||||
@ -711,7 +711,7 @@
|
|||||||
Reported:
|
Reported:
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
[% bug.creation_ts FILTER time %] by [% INCLUDE global/user.html.tmpl who = bug.reporter %]
|
[% bug.creation_ts FILTER time("%Y-%m-%d %H:%M %Z") %] by [% INCLUDE global/user.html.tmpl who = bug.reporter %]
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@ -720,7 +720,7 @@
|
|||||||
Modified:
|
Modified:
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
[% bug.delta_ts FILTER time FILTER replace(':\d\d$', '') FILTER replace(':\d\d ', ' ')%]
|
[% bug.delta_ts FILTER time("%Y-%m-%d %H:%M %Z") %]
|
||||||
(<a href="show_activity.cgi?id=[% bug.bug_id %]">[%# terms.Bug %]History</a>)
|
(<a href="show_activity.cgi?id=[% bug.bug_id %]">[%# terms.Bug %]History</a>)
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user