format date

mariohifi - December 22, 2007 - 17:04
Project:Upload Image
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:mariohifi
Status:closed
Description

I am trying the image upload form and I discovered that in the related nodes (nodes images) date is not properly formatted. I solved by changing the following line (183):

$image->date = format_date(strtotime('now'));

with this one:

$image->date = format_date($node->created, 'custom', 'Y-m-d H:i:s O');

in the upload_image_module

Thanks for this very useful module.

#1

Anonymous - January 5, 2008 - 17:12
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#2

beatelic - April 2, 2008 - 19:48

had the same error. I fixed all wrong datesets in the Database using this SQL statement:

Update node a, node b SET a.created = b.changed WHERE a.nid = b.nid AND a.created = -1

 
 

Drupal is a registered trademark of Dries Buytaert.