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.

Comments

damienmckenna’s picture

StatusFileSize
new1.19 KB

Here's a patch that applies format_date($value, 'short') to the output for the array('created', 'access', 'login') fields.

damienmckenna’s picture

Status: Active » Needs review
damienmckenna’s picture

StatusFileSize
new1.19 KB

Updated patch to match the latest DRUPAL-6--1 branch.

jsims281’s picture

Thanks Damien, can confirm that patch in #3 works perfectly with version 6x-1.1

Anonymous’s picture

Version: 6.x-1.0 » 6.x-1.1
Assigned: Unassigned »
StatusFileSize
new2.33 KB

I 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

serialbob’s picture

The last patch generate this message

Parse error: syntax error, unexpected ';', expecting ')' in /sites/all/modules/profile_csv/profile_csv.module on line 124

t1gor’s picture

2 Damien:

Thanks a lot - patch works perfectly. Great job!