Closed
Bug 123278
Opened 23 years ago
Closed 9 years ago
CSV and RDF buglists should not use relative dates
Categories
(Bugzilla :: Query/Bug List, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 6.0
People
(Reporter: nickb, Assigned: mail)
References
Details
(Keywords: relnote)
Attachments
(1 file, 1 obsolete file)
776 bytes,
patch
|
gerv
:
review+
|
Details | Diff | Splinter Review |
Some PVs display a time instead of a date in the opened or changed fields. This is especially problematic when trying to copy and paste into another application, eg excel. For example, try this query (assuming you have opened and changed fields enabled): http://bugzilla.mozilla.org/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&bugidtype=include&bug_id=113550%2C+121312%2C+122917&changedin=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=allwordssubstr&long_desc=&long_desc_type=allwordssubstr&bug_file_loc=&bug_file_loc_type=allwordssubstr&status_whiteboard=&status_whiteboard_type=allwordssubstr&keywords=&keywords_type=anywords&field0-0-0=noop&type0-0-0=noop&value0-0-0=&cmdtype=doit&namedcmd=All&newqueryname=&order=Reuse+same+sort+as+last+time The top of the list shows two dates, the middle one date and a day/time and the bottom one a day/time and a time.
Comment 1•23 years ago
|
||
This is on purpose. Times are shown relative to how long ago the time is. If it's within the last 24 hours it just shows a time. Within the last 6 months shows just the month/day. More than 6 months ago shows an ISO date (no time). buglist.cgi was intended to be read by humans, not machines. The XML export (xml.cgi) always shows full dates, it's intended to be machine readable, however, that just shows individual bugs. I could swear we already had a bug about having a way to override this, but I can't find it. So I'm leaving this open and morphing it to be that.
Severity: normal → enhancement
OS: Windows 2000 → All
Hardware: PC → All
Summary: dates in opened or changed fields sometimes appears as times. → need way to have consistant date formats in buglist for exporting
Updated•22 years ago
|
Priority: -- → P4
Summary: need way to have consistant date formats in buglist for exporting → need way to have consistent date formats in buglist for exporting
Target Milestone: --- → Future
Updated•21 years ago
|
Assignee: endico → nobody
Comment 2•20 years ago
|
||
*** Bug 241936 has been marked as a duplicate of this bug. ***
Comment 3•20 years ago
|
||
*** Bug 232444 has been marked as a duplicate of this bug. ***
Please excuse my ignorance! Would it be possible to give me some sort of explanation as to how I would be able to view what was spoken about when you said, "The XML export (xml.cgi) always shows full dates, it's intended to be machine readable, however, that just shows individual bugs." Thanks
Comment 5•20 years ago
|
||
That comment is a bit dated now... the XML stuff is built into show_bug.cgi instead of having its own CGI script. Try this: http://bugzilla.mozilla.org/show_bug.cgi?id=123278&ctype=xml
Comment 6•20 years ago
|
||
buglist.cgi also has RDF and CSV outputs... both of which should, in theory, have consistant date formats instead of the relative ones. Fixing that is, I think, what this bug is about.
Updated•20 years ago
|
Summary: need way to have consistent date formats in buglist for exporting → CSV and RDF buglists should not use relative dates
This feature is actually useful and we want to see the uniformed dates for Open Date and Last Changed Date. So, is there anyway to let admin to choose what format they want to use?
Updated•18 years ago
|
QA Contact: mattyt-bugzilla → default-qa
Updated•18 years ago
|
Target Milestone: Future → ---
Updated•16 years ago
|
Assignee: nobody → query-and-buglist
Priority: P4 → --
Assignee | ||
Comment 8•10 years ago
|
||
CSV and XML already show the full date. This change is for the ATOM feed.
Assignee: query-and-buglist → bugzilla
Status: NEW → ASSIGNED
Attachment #8472938 -
Flags: review?(gerv)
Comment 9•10 years ago
|
||
(In reply to Simon Green (personal account) from comment #8) > Created attachment 8472938 [details] [diff] [review] > bug123278-v1.patch > > CSV and XML already show the full date. This change is for the ATOM feed. Will this produce a date which matches the Atom date spec? https://en.wikipedia.org/wiki/Atom_%28standard%29#Date_formats If not, we should probably do that, to avoid having to make two breaking changes. Gerv
Assignee | ||
Comment 10•10 years ago
|
||
Comment on attachment 8472938 [details] [diff] [review] bug123278-v1.patch (In reply to Gervase Markham [:gerv] from comment #9) > (In reply to Simon Green (personal account) from comment #8) > > Created attachment 8472938 [details] [diff] [review] > > bug123278-v1.patch > > > > CSV and XML already show the full date. This change is for the ATOM feed. > > Will this produce a date which matches the Atom date spec? > https://en.wikipedia.org/wiki/Atom_%28standard%29#Date_formats No. We produce "2012-10-24 07:34:45", but it seems it should be "2012-10-24T07:34:45Z" > If not, we should probably do that, to avoid having to make two breaking > changes. We probably should :)
Attachment #8472938 -
Attachment is obsolete: true
Attachment #8472938 -
Flags: review?(gerv)
Assignee | ||
Updated•10 years ago
|
Assignee: bugzilla → query-and-buglist
Assignee | ||
Comment 11•9 years ago
|
||
Assignee: query-and-buglist → simon
Attachment #8585241 -
Flags: review?(gerv)
Comment 12•9 years ago
|
||
Comment on attachment 8585241 [details] [diff] [review] v2 patch Review of attachment 8585241 [details] [diff] [review]: ----------------------------------------------------------------- r=gerv. Gerv
Attachment #8585241 -
Flags: review?(gerv) → review+
Updated•9 years ago
|
Flags: approval?
Target Milestone: --- → Bugzilla 6.0
Assignee | ||
Comment 13•9 years ago
|
||
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git 52ff6aa..82ea617 master -> master
You need to log in
before you can comment on or make changes to this bug.
Description
•