diff options
author | Byron Jones <bjones@mozilla.com> | 2013-11-18 15:25:09 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-11-18 15:25:09 +0100 |
commit | 3e5fc54202f854e76b139ec71fd78e91029dc7d2 (patch) | |
tree | bdd3961ee86156496a4eef8fc177e2b6aef0e214 /Bugzilla | |
parent | 00ff4e6d2e328e4032bbbe2586c623384cc15161 (diff) | |
download | bugzilla-3e5fc54202f854e76b139ec71fd78e91029dc7d2.tar.gz bugzilla-3e5fc54202f854e76b139ec71fd78e91029dc7d2.tar.xz |
Bug 937180: creation_ts of bugs and attachments always at 0 seconds
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Attachment.pm | 29 | ||||
-rw-r--r-- | Bugzilla/Bug.pm | 2 |
2 files changed, 14 insertions, 17 deletions
diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index 944337711..1a12e65b1 100644 --- a/Bugzilla/Attachment.pm +++ b/Bugzilla/Attachment.pm @@ -76,22 +76,19 @@ use constant LIST_ORDER => ID_FIELD; use constant AUDIT_CREATES => 0; use constant AUDIT_UPDATES => 0; -sub DB_COLUMNS { - my $dbh = Bugzilla->dbh; - - return qw( - attach_id - bug_id - description - filename - isobsolete - ispatch - isprivate - mimetype - modification_time - submitter_id), - $dbh->sql_date_format('attachments.creation_ts', '%Y.%m.%d %H:%i') . ' AS creation_ts'; -} +use constant DB_COLUMNS => qw( + attach_id + bug_id + creation_ts + description + filename + isobsolete + ispatch + isprivate + mimetype + modification_time + submitter_id +); use constant REQUIRED_FIELD_MAP => { bug_id => 'bug', diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index df2e4b637..1c3b0267c 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -94,6 +94,7 @@ sub DB_COLUMNS { bug_status cclist_accessible component_id + creation_ts delta_ts estimated_time everconfirmed @@ -112,7 +113,6 @@ sub DB_COLUMNS { version ), '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', @custom_names); |