CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Date proccesing on Report CSV export incorrect
Pages: [1]

Author Topic: Date proccesing on Report CSV export incorrect  (Read 1378 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Date proccesing on Report CSV export incorrect
December 16, 2010, 04:16:12 pm
Hi there,

I'm working on a new CiviReport (Member Detail) and I noticed the date formatting on CSV exporting is not ISO 8601 (the usual: 2010-12-23 format)  standard.  

Rather Export in CSV omits the - and just gives 20101223 which is interpreted by most readers (human and computer) as an integer, not a date.

I'd like to fix this, as well as make some improvements to a few reports.  If someone can guide me to the place where these CSV export  dates are formatted I will commit the changes and submit a patch.

I was last looking CRM/Report/Form/Member/Detail.php but that's not where the date formatting happens I don't think, and I can't figure out where it does.

Thanks!



« Last Edit: December 17, 2010, 01:26:30 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Date proccesing on Report CSV export incorrect
December 18, 2010, 03:38:06 am
Check CRM/Report/Utils/Report.php file, export2csv() function.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Date proccesing on Report CSV export incorrect
December 21, 2010, 12:05:17 pm
found it.

I have submitted an issue with patch.

thanks
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Date proccesing on Report CSV export incorrect
January 21, 2011, 09:08:18 am
would be great if you could post the issue number here :)
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Date proccesing on Report CSV export incorrect

This forum was archived on 2017-11-26.