From c338e2fdc6b4f0b385672ac9140284ccbd7244a4 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sun, 1 Jun 2008 09:20:33 +0200 Subject: issue123, instead of using the Exif-Metadata-Time or mtime of the photo itself, rely on the F-Spot date in the photos-table (column time) Signed-off-by: Andreas Unterkircher --- phpfspot.class.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/phpfspot.class.php b/phpfspot.class.php index 797c604..2b5e180 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -719,7 +719,6 @@ class PHPFSPOT { $meta_res = $info[0] ."x". $info[1]; } - $meta_date = isset($meta['FileDateTime']) ? strftime("%a %x %X", $meta['FileDateTime']) : "n/a"; $meta_make = isset($meta['Make']) ? $meta['Make'] ." / ". $meta['Model'] : "n/a"; $meta_size = isset($meta['FileSize']) ? round($meta['FileSize']/1024, 1) ."kbyte" : "n/a"; @@ -747,7 +746,7 @@ class PHPFSPOT { $this->tmpl->assign('width', $info_thumb[0]); $this->tmpl->assign('height', $info_thumb[1]); - $this->tmpl->assign('ExifMadeOn', $meta_date); + $this->tmpl->assign('ExifMadeOn', strftime("%a %x %X", $details['time'])); $this->tmpl->assign('ExifMadeWith', $meta_make); $this->tmpl->assign('ExifOrigResolution', $meta_res); $this->tmpl->assign('ExifFileSize', $meta_size); @@ -2574,18 +2573,16 @@ class PHPFSPOT { $meta = $this->get_meta_informations($orig_path); } - $meta_date = isset($meta['FileDateTime']) ? $meta['FileDateTime'] : filemtime($orig_path); - ?> <?php print htmlspecialchars($this->parse_uri($details['uri'], 'filename')); ?> - + - +