src/libraries/models/Photo.php
/** 
   * Parse the exif date
   *
   * @param $exif the exif block
   * @param $key the exif key to get the date from
   * @return the parsed date or false if not found
   */
Parse the exif date
@param $exif the exif block
@param $key the exif key to get the date from
@return the parsed date or false if not found
Parse the exif date @param $exif the exif block @param $key the exif key to get the date from @return the parsed date or false if not found
private function parseExifDate($exif, $key)
  {
    if(array_key_exists($key, $exif))
    {
      $dateTime = explode(' ', $exif[$key]);
      $date = explode(':', $dateTime[0]);
      $time = explode(':', $dateTime[1]);
      return @mktime($time[0], $time[1], $time[2], $date[1], $date[2], $date[0]);
    }
    return false;
  }
private function parseExifDate ( $ exif , $ key ) { if ( array_key_exists ( $ key , $ exif ) ) { $ dateTime = explode ( ' ' , $ exif [ $ key ] ) ; $ date = explode ( ':' , $ dateTime [ 0 ] ) ; $ time = explode ( ':' , $ dateTime [ 1 ] ) ; return @ mktime ( $ time [ 0 ] , $ time [ 1 ] , $ time [ 2 ] , $ date [ 1 ] , $ date [ 2 ] , $ date [ 0 ] ) ; } return false ; }
Parse the exif date
 @param $exif the exif block
 @param $key the exif key to get the date from
 @return the parsed date or false if not found
Parse the exif date @param $exif the exif block @param $key the exif key to get the date from @return the parsed date or false if not found