How to restore EXIF date/time selectively? Bad date/time is set for some photos...

Drrrl

Joined: 2003-02-02
Posts: 23
Posted: Sat, 2011-02-19 20:39

Hi,

I'm running G2, most of the pictures were imported few months ago from G1 (1.5.9 if I remember correctly).
I noticed that for some of the photos, the date/time shown under thumbnail in album view is totally wrong. For instance I have a picture taken on 03 Aug 2008, but in album view I can see:

Date: 11/30/1999
Views: 10
Comments: 2

under the thumbnail. Also when I go to Edit Photo, in General tab I can see:

Photo Date and Time

Set the date and time when this image was captured.

Date: November 30 1999 Time: 00 00 00

Use the original capture date and time from file information (e.g. Exif tag):
Sun 03 Aug 2008 05:22:07 PM CEST

The 2008 date is correct.

There was a bug in Gallery v1.5.8, which caused that a capture date stored in database for newly added photos was set totally wrong, instead of taking EXIF capture date. I think that this happened to this photo and few others, and when I imported all of them to G2, the wrong date was imported as well.

I would like to correct the dates. Of course I can use "Edit Photo", click on the right date in "Photo Date and time" section, but for tens of photos it will be a huge and time consuming job.
I think I could also use the Site Admin -> Maintenance -> Refresh capture dates option, but this is global, right? And the problem is that I have several albums where I have scans from old negatives and I set capture date to the real one (from the past), running this option would reset capture dates to scan dates.

Is there any way to refresh capture dates selectively, for instance in selected albums only?

Thanks in advance,

Grzegorz


Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.3.5-pl0-gentoo apache2handler
Webserver = Apache
Database = mysqli 5.1.51-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, ImageMagick, LinkItemToolkit, Thumbnail, Gd, SquareThumb
Acceleration = none, none
Operating system = Linux hostname 2.6.27-gentoo-r10 #6 Mon Jul 27 23:29:08 CEST 2009 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729)
Rows in GalleryAccessMap table = 699
Rows in GalleryAccessSubscriberMap table = 8285
Rows in GalleryUser table = 19
Rows in GalleryItem table = 8283
Rows in GalleryAlbumItem table = 532
Rows in GalleryCacheMap table = 0