Closed
Bug 167476
Opened 23 years ago
Closed 23 years ago
unix_timestamp conversion error using MySQL
Categories
(Bugzilla :: Reporting/Charting, defect, P1)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: finne, Assigned: gerv)
Details
Line 275 in reports.cgi generated for linux/mysql. Bugzilla version 1.14.1.
reads:
unix_timestamp(date_format(bugs.creation_ts, '%Y-%m-%d %h:%m:%s'))
There is a simple error converting the minutes using %m which reference months.
Should have been %i.
This part of the SQL-sentence does not take into account european formated dates
running from 0-23 - in mysql not %h, but %H; nor does it take into account use
of 0-11 clocks using AM/PM formated strings by adding %p.
The correct string for 0-23 hour clock: '%Y-%m-%d %H:%i:%s'
The correct string for 0-11 hour clock: '%Y-%m-%d %h:%i:%s %p'
| Reporter | ||
Updated•23 years ago
|
Priority: -- → P1
| Assignee | ||
Comment 1•23 years ago
|
||
Fixed.
Checking in reports.cgi;
/cvsroot/mozilla/webtools/bugzilla/reports.cgi,v <-- reports.cgi
new revision: 1.59; previous revision: 1.58
done
Gerv
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•23 years ago
|
Target Milestone: --- → Bugzilla 2.18
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•