Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
ac6167f3
Commit
ac6167f3
authored
Nov 18, 2013
by
Byron Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 937180: creation_ts of bugs and attachments always at 0 seconds
r=dkl, a=simon
parent
17b7781c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
20 deletions
+17
-20
Attachment.pm
Bugzilla/Attachment.pm
+13
-16
Bug.pm
Bugzilla/Bug.pm
+1
-1
list.html.tmpl
template/en/default/attachment/list.html.tmpl
+1
-1
edit.html.tmpl
template/en/default/bug/edit.html.tmpl
+2
-2
No files found.
Bugzilla/Attachment.pm
View file @
ac6167f3
...
...
@@ -59,22 +59,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'
,
...
...
Bugzilla/Bug.pm
View file @
ac6167f3
...
...
@@ -71,6 +71,7 @@ sub DB_COLUMNS {
bug_status
cclist_accessible
component_id
creation_ts
delta_ts
estimated_time
everconfirmed
...
...
@@ -89,7 +90,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
);
...
...
template/en/default/attachment/list.html.tmpl
View file @
ac6167f3
...
...
@@ -88,7 +88,7 @@ function toggle_display(link) {
<br>
<a href="#attach_[% attachment.id %]"
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. %]
[% attacher_id = attachment.attacher.id %]
...
...
template/en/default/bug/edit.html.tmpl
View file @
ac6167f3
...
...
@@ -711,7 +711,7 @@
Reported:
</th>
<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>
</tr>
...
...
@@ -720,7 +720,7 @@
Modified:
</th>
<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>)
</td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment