Export CVS No Time

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
NandoNaldo
Posts: 122
Joined: 09 Mar 2016, 21:44

Export CVS No Time

Post by NandoNaldo »

Hi,

When i try to export issues, in CVS, there is not the time ( last updated or date submited). When i see the last updated or date submited filed on the issue, i can see even the time ( ex in the attach),
but there is not present in the CVS

Any idea ?
Attachments
Capture 2.JPG
Capture 2.JPG (10.57 KiB) Viewed 6961 times
Capture.JPG
Capture.JPG (14.05 KiB) Viewed 6961 times
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Export CVS No Time

Post by atrol »

Goto page My Account > Manage Columns
There is a field "CSV Columns" where you can configure the fields you want to export.
Please use Search before posting and read the Manual
NandoNaldo
Posts: 122
Joined: 09 Mar 2016, 21:44

Re: Export CVS No Time

Post by NandoNaldo »

Yes, i added the field: last_updated. In Mantis, this field has the date, the hour and the minute.

But, when i export CVS, in the excel file, in the column last_updated, i found only the date.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Export CVS No Time

Post by atrol »

The easiest way without changing any existing Mantis code, would be to add the following line to file config_inc.php

Code: Select all

$g_short_date_format = 'Y-m-d H:i';
This might not be what you want as you will see some more places in Mantis where this change will take effect.
Please use Search before posting and read the Manual
NandoNaldo
Posts: 122
Joined: 09 Mar 2016, 21:44

Re: Export CVS No Time

Post by NandoNaldo »

Thank You.

Now is OK.
Post Reply