View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003914 | mantisbt | feature | public | 2004-06-05 17:41 | 2004-07-07 18:47 |
Reporter | malaussena | Assigned To | vboctor | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.18.3 | ||||
Fixed in Version | 0.19.0a1 | ||||
Summary | 0003914: CSV Export : incorrect date_submitted and last_updated | ||||
Description | CSV export returns wrong date in date_submitted and last_updated. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Patch : cvs diff csv_api.php (in directory D:\CVSREPO\root1\mantisbt\core)
|
|
malaussena, what exactly is the problem with the date? Can you specify your bug report some more please? Also, can you post your patch in unified diff format? I'm trying to figure out what you were tryuing to do, but I'm not sure which is the resulting revision. This: Is certainly incorrect. config_get() takes only one parameter (in this case). |
|
Yes. You're rigth :-( The bug is date_submitted returned as '01/01/1970' (in french format) in the CSV export which is the default value, not the good one. test2.csv is the export with wrong date. |
|
Whats your short_date_format set to? |
|
short date format is set in config_inc.php : $g_short_date_format = 'd-m-y'; test.csv is the export file without my "wrong" fix ;-), with 01-01-70 in submitted-date. |
|
I've tried with short-date-format set to the default value (defaults_config_inc.php). I have the same problem with 2 install of Mantis 0.18.3 |
|
Rappel envoyé à int2str I've tried to debug csv_export.php. I've modified export rows like that :
--> echo $key ; check if column should be visible
and I get this : id 1 As you can see, last_updated is returned as 1086443436 but date_submitted is returned as 2004-06-05 15:50:36. So, in csv_export.php,
can't return a good value for date_submitted. But... what's the problem ? Regards. Eric. |
|
Rappel envoyé à int2str I think I found a fix for my problem. In \core\filter_api.php I've modified : $query2 = "SELECT DISTINCT $t_select, UNIX_TIMESTAMP(last_updated) as last_updated to : $query2 = "SELECT DISTINCT $t_select, UNIX_TIMESTAMP(date_submitted) as date_submitted, UNIX_TIMESTAMP(last_updated) as last_updated It seems ok for me, now... Do you agree with me ? |
|
In \core\filter_api.php a new correction to be compatible with the Text Search in view_all_bug_page.php : $query2 = "SELECT DISTINCT $t_select, UNIX_TIMESTAMP(mantis_bug_table.date_submitted) as date_submitted, UNIX_TIMESTAMP(last_updated) as last_updated |
|
UNIX_TIMESTAMP isn't used in CVS head, so this issue problem only occurs in the current release. As far as i can tell, latest cvs does not have this issue. |
|
I do agree with you. This only occurs in 0.18.3... but it is the last release. |
|
This is already fixed in 0.19.0. |
|