mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 09:52:29 +02:00
bug 1047 fixed: avoid warnings when the creation date is 0000-00-00 (which
happens when date_creation comes from corrupted EXIF) bug 859 fixed: at display time only. Piwigo still inserts wrong date in the database, to be fixed later. git-svn-id: http://piwigo.org/svn/branches/2.0@4965 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -563,6 +563,11 @@ function format_date($date, $show_time = false)
|
||||
{
|
||||
global $lang;
|
||||
|
||||
if (strpos($date, '0') == 0)
|
||||
{
|
||||
return l10n('N/A');
|
||||
}
|
||||
|
||||
$ymdhms = array();
|
||||
$tok = strtok( $date, '- :');
|
||||
while ($tok !== false)
|
||||
|
||||
Reference in New Issue
Block a user