Changeset 9073


Ignore:
Timestamp:
Feb 3, 2011, 9:18:38 AM (13 years ago)
Author:
plg
Message:

bug 270 fixed: (yes "270", submitted in 2006), time (hour:minute:second) added
in the date_creation field and in the synchronization from EXIF metadata.

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_metadata.php

    r8728 r9073  
    9090    if (in_array($pwg_key, array('date_creation', 'date_available')))
    9191    {
    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))
    9397      {
    9498        $exif[$pwg_key] = $matches[1].'-'.$matches[2].'-'.$matches[3];
  • trunk/install/piwigo_structure-mysql.sql

    r8802 r9073  
    177177  `file` varchar(255) binary NOT NULL default '',
    178178  `date_available` datetime NOT NULL default '0000-00-00 00:00:00',
    179   `date_creation` date default NULL,
     179  `date_creation` datetime default NULL,
    180180  `tn_ext` varchar(4) default '',
    181181  `name` varchar(255) default NULL,
  • trunk/picture.php

    r9055 r9073  
    860860      'chronology_style'=>'monthly',
    861861      'chronology_view'=>'list',
    862       'chronology_date' => explode('-', $picture['current']['date_creation'])
     862      'chronology_date' => explode('-', substr($picture['current']['date_creation'], 0, 10))
    863863      )
    864864    );
Note: See TracChangeset for help on using the changeset viewer.