Changeset 2850


Ignore:
Timestamp:
Nov 9, 2008, 3:26:39 PM (15 years ago)
Author:
grum
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/include/category_default.inc.php

    r2840 r2850  
    118118      'FILE_POSTED' => format_date($row['date_available'], 'mysql_datetime'),
    119119      'FILE_CREATED' => (empty($row['date_creation'])) ?
    120         '-': format_date($row['date_creation'], 'mysql_datetime'),
     120        '-': format_date($row['date_creation'], 'us'),
    121121      'FILE_DESC' => (empty($row['comment'])) ? '-' : $row['comment'],
    122122      'FILE_AUTHOR' => (empty($row['author'])) ? '-' : $row['author'],
     
    126126      'FILE_HEIGHT' => (empty($row['height'])) ? '-' : $row['height'],
    127127      'FILE_METADATE' => (empty($row['date_metadata_update'])) ?
    128         '-': format_date($row['date_metadata_update'], 'mysql_datetime'),
     128        '-': format_date($row['date_metadata_update'], 'us'),
    129129      'FILE_RATE' => (empty($row['rate'])) ? '-' : $row['rate'],
    130130      'FILE_HAS_HD' => ($row['has_high'] and $user['enabled_high']=='true') ?
Note: See TracChangeset for help on using the changeset viewer.