Bug 1281683 - Timestamps are shown incorrectly in show_bug.cgi after adding an attachment
Summary: Timestamps are shown incorrectly in show_bug.cgi after adding an attachment
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: Creating/Changing Bugs
Version: 4.4
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: 5.0-RH6
Assignee: Jeff Fearn 🐞
QA Contact: Lianghui Yu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-13 06:48 UTC by Jason McDonald
Modified: 2019-08-08 14:21 UTC (History)
2 users (show)

Fixed In Version: 5.0.4-rh27
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-08 14:21:22 UTC
Embargoed:


Attachments (Terms of Use)

Description Jason McDonald 2015-11-13 06:48:08 UTC
Description of problem:
After adding an attachment to a bug, the following problems occur:

* The timestamp on the last comment is missing the seconds field.
* The Modified time of the bug is missing the minutes field (seconds aren't shown in that field, e.g. it is displayed as "2015-11-13 16 EST" instead of "2015-11-13 16:12 EST".

Version-Release number of selected component (if applicable):
4.4.10042

How reproducible:
100%

Steps to Reproduce:
1. When viewing a bug, click "Add an attachment"
2. Enter the attachment content and a description, then click Submit.

Actual results:
The Modified field is missing minutes.
The Comment timestamp is missing seconds.

Expected results:
All timestamps complete and in correct timezone.

Additional info:
After making further changes to the bug that don't involve attachments (e.g. adding another comment), the comment related to the attachment is still missing the seconds field. The Modified time is shown correctly if the change didn't involve adding an attachment.

When creating an attachment, Bugzilla adds a couple of extra lines to the start of the comment.  Perhaps that code is somehow related to this bug.

The bug does not appear to be related to the user's timezone, I tried using both Australia/Brisbane and the site default.

Comment 1 Jeff Fearn 🐞 2018-03-16 04:25:50 UTC
Is this still a problem in BZ5?

Comment 2 Jason McDonald 2018-03-17 08:15:43 UTC
I can reproduce the bug as described on Bugzilla 4.4.

In our BZ5, I can only reproduce the first problem (seconds missing from last comment's timestamp) and the second problem does not occur.

In Landfill BZ5, I cannot reproduce either problem.

Comment 3 Lianghui Yu 2019-07-08 06:44:22 UTC
Verified on latest QE environment,
Result: PASS
now second is back and working just fine.

Comment 5 Jeff Fearn 🐞 2019-08-06 00:30:59 UTC
This change has been staged on partner bugzilla. Feel free to test it there and let us know if you have any issues.

https://partner-bugzilla.redhat.com

Comment 6 Jeff Fearn 🐞 2019-08-08 14:21:22 UTC
This change is now live. If there are any issues, do not reopen this
bug. Instead, you should create a new bug and reference this bug.


Note You need to log in before you can comment on or make changes to this bug.