[frogr] Load DateTimeOriginal for 'date taken' from EXIF information



commit 17c6da666695915a748523c0bb45f5f9dede8f8a
Author: Mario Sanchez Prada <msanchez gnome org>
Date:   Sat Sep 13 17:31:12 2014 +0100

    Load DateTimeOriginal for 'date taken' from EXIF information
    
    EXIF's DateTime changes whenever the file changes (e.g. edited) so it's
    not a good value to use for the 'date taken' field. DateTimeOriginal
    actually represents the moment the image was capture, so use that one.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=734193

 src/frogr-file-loader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/frogr-file-loader.c b/src/frogr-file-loader.c
index 50e80e6..c8dfddd 100644
--- a/src/frogr-file-loader.c
+++ b/src/frogr-file-loader.c
@@ -588,7 +588,7 @@ _update_picture_with_exif_data (FrogrFileLoader *self,
       ExifEntry *exif_entry = NULL;
 
       /* Date and time for picture taken */
-      exif_entry = exif_data_get_entry (exif_data, EXIF_TAG_DATE_TIME);
+      exif_entry = exif_data_get_entry (exif_data, EXIF_TAG_DATE_TIME_ORIGINAL);
       if (exif_entry)
         {
           if (exif_entry->format == EXIF_FORMAT_ASCII)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]