=== modified file 'prog_gallery.module'
--- prog_gallery.module	2009-03-18 12:11:01 +0000
+++ prog_gallery.module	2009-03-18 13:40:53 +0000
@@ -1608,7 +1608,19 @@
 
   if (is_array($exif) && (sizeof($exif)>0)) {
     // try all DateTime entries in EXIF data fields
-    foreach ($exif as $key => $section) if ($key == 'IFD0') if ($section['DateTime']) $exif_date= $section['DateTime'];
+    foreach ($exif as $key => $section) {
+      if ($key == 'IFD0') 
+        if ($section['DateTime']) {
+          $exif_date= $section['DateTime'];
+          break;
+        }
+      if ($key == 'EXIF')
+        if ($section['DateTimeOriginal'])
+        {
+          $exif_date= $section['DateTimeOriginal'];
+          break;
+        }
+    }
 
     // some dirty substring routine
     if (drupal_strlen($exif_date)>2) {

