Edgewall Software
Modify

Opened 18 years ago

Closed 15 years ago

Last modified 15 years ago

#4807 closed defect (fixed)

Date fields formatting lost during export to csv

Reported by: kiffin@… Owned by: Matthew Good
Priority: high Milestone: 0.11
Component: report system Version: 0.9.4
Severity: major Keywords:
Cc: sverma@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

At the bottom of each Report page, there are links to download the results in other formats, namely Comma- or Tab-delimited Text.

However, the files that are generated do not retain the original datetime formats for the Created and Modified columns and instead contain time integers.

Keeping the original date formats is useful, for example when imported into an excel sheet or other program where readable dates make more sense.

(Please fix before my project manager kills me)

Attachments (2)

csvdate.patch (1.5 KB ) - added by Emmanuel Blot 18 years ago.
Convert date & time values in CSV/TAB files
trac-0.10.4_t4807_cvsdate.patch (2.1 KB ) - added by dshay <dshay at ball dot com> 17 years ago.
Convert date & time values in CSV/TAB files (Patch Against 0.10.4)

Download all attachments as: .zip

Change History (12)

by Emmanuel Blot, 18 years ago

Attachment: csvdate.patch added

Convert date & time values in CSV/TAB files

comment:1 by Emmanuel Blot, 18 years ago

Can you try the attached patch file?

comment:2 by anonymous, 18 years ago

Version: 0.9.4

I am using version 0.9.4 and the patch doesn't seem to help. Do you have a patch available for my version?

comment:3 by Christian Boos, 18 years ago

Milestone: 0.11

There are no planned enhancements for 0.9 at this point, even none for 0.10 and actually, we could start to think about postponing new enhancements for 0.11 as well ;-)

comment:4 by Matthew Good, 18 years ago

Resolution: fixed
Status: newclosed

This is implemented by r4846. ISO dates and times are used to enable better parsing than the locale-based representation used in the HTML.

comment:5 by Matthew Good, 18 years ago

Actually r4847 was the change for this ticket.

by dshay <dshay at ball dot com>, 17 years ago

Convert date & time values in CSV/TAB files (Patch Against 0.10.4)

comment:6 by sverma@…, 16 years ago

Cc: sverma@… added
Resolution: fixed
Status: closedreopened

Reopening as I feel the problem belonging to this category. When i export to csv using the "Download in other formats" date changes from for example 09/04/08 to 1220556898 . Why is this taking place and what can i do to avoid it . Our system is unable to find no corelation between the two. Please advise.

in reply to:  6 comment:7 by Christian Boos, 16 years ago

Resolution: fixed
Status: reopenedclosed

Replying to sverma@…:

… When i export to csv using the "Download in other formats" date changes from for example 09/04/08 to 1220556898 . Please advise.

If you're using Trac 0.10.x, upgrade to 0.11.1 or later, or apply the attachment:trac-0.10.4_t4807_cvsdate.patch on your installation if you can't upgrade for some reason.

In any case, the issue has been fixed in r4847 (though izip was not such a good idea in retrospect ;-) ).

comment:8 by ronaldorezende@…, 15 years ago

Resolution: fixed
Status: closedreopened
Version: 0.9.40.11

When I export some report to csv, the date format is like this "2009-07-17 18:38:43+00:00". How can I export to this format: "2009-07-17 18:38:43"? (without "+00:00") Is this a bug of 0.11 ?

comment:9 by Felix Schwarz <felix.schwarz@…>, 15 years ago

Resolution: fixed
Status: reopenedclosed
Version: 0.110.9.4

No, this is intentional because the formatting is always iso formatting. The rationale is summarized by comment 4.

in reply to:  9 comment:10 by anonymous, 15 years ago

Replying to Felix Schwarz <felix.schwarz@…>:

No, this is intentional because the formatting is always iso formatting. The rationale is summarized by comment 4.

Thank you. Is there a way to export to csv using the datetime format without "+00:00"? I'm trying to open csv files in excel, but excel isn't reconizing this format as a valid date.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Matthew Good to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.