Changeset 9073
- Timestamp:
- Feb 3, 2011, 9:18:38 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_metadata.php
r8728 r9073 90 90 if (in_array($pwg_key, array('date_creation', 'date_available'))) 91 91 { 92 if (preg_match('/^(\d{4}).(\d{2}).(\d{2})/', $value, $matches)) 92 if (preg_match('/^(\d{4}).(\d{2}).(\d{2}) (\d{2}).(\d{2}).(\d{2})/', $value, $matches)) 93 { 94 $exif[$pwg_key] = $matches[1].'-'.$matches[2].'-'.$matches[3].' '.$matches[4].':'.$matches[5].':'.$matches[6]; 95 } 96 elseif (preg_match('/^(\d{4}).(\d{2}).(\d{2})/', $value, $matches)) 93 97 { 94 98 $exif[$pwg_key] = $matches[1].'-'.$matches[2].'-'.$matches[3]; -
trunk/install/piwigo_structure-mysql.sql
r8802 r9073 177 177 `file` varchar(255) binary NOT NULL default '', 178 178 `date_available` datetime NOT NULL default '0000-00-00 00:00:00', 179 `date_creation` date default NULL,179 `date_creation` datetime default NULL, 180 180 `tn_ext` varchar(4) default '', 181 181 `name` varchar(255) default NULL, -
trunk/picture.php
r9055 r9073 860 860 'chronology_style'=>'monthly', 861 861 'chronology_view'=>'list', 862 'chronology_date' => explode('-', $picture['current']['date_creation'])862 'chronology_date' => explode('-', substr($picture['current']['date_creation'], 0, 10)) 863 863 ) 864 864 );
Note: See TracChangeset
for help on using the changeset viewer.