Two fields in the database [image table] are in the 'yyyy-mm-dd' format
[date_metadata_update & date_creation] and for these fields the format_date function is called with a 'mysql_datetime' format value (so, the function is waiting for 'yyyy-mm-dd hh:mm:ss' date format) Made a call with the 'us' to resolve the problem git-svn-id: http://piwigo.org/svn/branches/2.0@2850 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
e88cc0f6a5
commit
4ecb7f0e25
1 changed files with 2 additions and 2 deletions
|
@ -117,7 +117,7 @@ foreach ($pictures as $row)
|
|||
'FILE_PATH' => $row['path'],
|
||||
'FILE_POSTED' => format_date($row['date_available'], 'mysql_datetime'),
|
||||
'FILE_CREATED' => (empty($row['date_creation'])) ?
|
||||
'-': format_date($row['date_creation'], 'mysql_datetime'),
|
||||
'-': format_date($row['date_creation'], 'us'),
|
||||
'FILE_DESC' => (empty($row['comment'])) ? '-' : $row['comment'],
|
||||
'FILE_AUTHOR' => (empty($row['author'])) ? '-' : $row['author'],
|
||||
'FILE_HIT' => $row['hit'],
|
||||
|
@ -125,7 +125,7 @@ foreach ($pictures as $row)
|
|||
'FILE_WIDTH' => (empty($row['width'])) ? '-' : $row['width'],
|
||||
'FILE_HEIGHT' => (empty($row['height'])) ? '-' : $row['height'],
|
||||
'FILE_METADATE' => (empty($row['date_metadata_update'])) ?
|
||||
'-': format_date($row['date_metadata_update'], 'mysql_datetime'),
|
||||
'-': format_date($row['date_metadata_update'], 'us'),
|
||||
'FILE_RATE' => (empty($row['rate'])) ? '-' : $row['rate'],
|
||||
'FILE_HAS_HD' => ($row['has_high'] and $user['enabled_high']=='true') ?
|
||||
true:false, /* lack of include/functions_picture.inc.php */
|
||||
|
|
Loading…
Reference in a new issue