Needs review
Project:
Profile CSV
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Reporter:
Created:
27 Aug 2010 at 19:44 UTC
Updated:
17 Jun 2011 at 09:07 UTC
Jump to comment: Most recent, Most recent file
For usability purposes it would be very useful if the core system date fields were exported using the format_date() function, rather than just throwing the raw timestamp value at people.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | profile_csv_611_date_format_01.patch | 2.33 KB | Anonymous (not verified) |
| #3 | profile_csv-n895638-2.patch | 1.19 KB | damienmckenna |
| #1 | profile_csv-n895638.patch | 1.19 KB | damienmckenna |
Comments
Comment #1
damienmckennaHere's a patch that applies format_date($value, 'short') to the output for the array('created', 'access', 'login') fields.
Comment #2
damienmckennaComment #3
damienmckennaUpdated patch to match the latest DRUPAL-6--1 branch.
Comment #4
jsims281 commentedThanks Damien, can confirm that patch in #3 works perfectly with version 6x-1.1
Comment #5
Anonymous (not verified) commentedI made a patch for my site.
There is a configurable date format select in setup, so everyone can chose they personal format or leave the timestamp.
We can't use default format or custom format, because some special characters might break the csv format
Comment #6
serialbob commentedThe last patch generate this message
Parse error: syntax error, unexpected ';', expecting ')' in /sites/all/modules/profile_csv/profile_csv.module on line 124
Comment #7
t1gor commented2 Damien:
Thanks a lot - patch works perfectly. Great job!