diff options
author | rub <rub@piwigo.org> | 2008-11-09 21:49:46 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2008-11-09 21:49:46 +0000 |
commit | afe30fc962486901097b20a56bb6ae2a8ac17a16 (patch) | |
tree | 79292b138648c1304c5fc781cd0f22f08c303336 /include/category_default.inc.php | |
parent | 14b13c4d67552375b996316901d87177550921cf (diff) |
Resolved issue 0000900: format_date function doesn't work when time is omitted with 'mysql_datetime' type
Continue correction of grum
merge -c2856 from trunk to branch 2.0
The exact copy of commit log in 2856.
git-svn-id: http://piwigo.org/svn/branches/2.0@2857 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/category_default.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php index 02f8afd39..d3359b3d4 100644 --- a/include/category_default.inc.php +++ b/include/category_default.inc.php @@ -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'], 'us'), + '-': format_date($row['date_creation'], 'mysql_date'), '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'], 'us'), + '-': format_date($row['date_metadata_update'], 'mysql_date'), '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 */ |