Changeset 9073 for trunk/admin


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.

File:
1 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];
Note: See TracChangeset for help on using the changeset viewer.