Closed Bug 123278 Opened 24 years ago Closed 10 years ago

CSV and RDF buglists should not use relative dates

Categories

(Bugzilla :: Query/Bug List, enhancement)

2.15
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 6.0

People

(Reporter: nickb, Assigned: mail)

References

Details

(Keywords: relnote)

Attachments

(1 file, 1 obsolete file)

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
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
Assignee: endico → nobody
*** Bug 241936 has been marked as a duplicate of this bug. ***
*** 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
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
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.
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?
QA Contact: mattyt-bugzilla → default-qa
Target Milestone: Future → ---
Assignee: nobody → query-and-buglist
Priority: P4 → --
Attached patch bug123278-v1.patch (obsolete) — Splinter Review
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)
(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
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: bugzilla → query-and-buglist
Attached patch v2 patchSplinter Review
Assignee: query-and-buglist → simon
Attachment #8585241 - Flags: review?(gerv)
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+
Flags: approval?
Target Milestone: --- → Bugzilla 6.0
Flags: approval? → approval+
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git 52ff6aa..82ea617 master -> master
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Keywords: relnote
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: