From 1d6017bde576662cc38350ffb4a2edf4a69ace38 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Wed, 8 Jun 2011 00:30:27 +0000 Subject: [PATCH] Fixed errors in _format_datetime() to match corrections from Nick Hall. svn: r17712 --- src/plugins/gramplet/EditExifMetadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/gramplet/EditExifMetadata.py b/src/plugins/gramplet/EditExifMetadata.py index fd8fe7365..7dd73ce2c 100644 --- a/src/plugins/gramplet/EditExifMetadata.py +++ b/src/plugins/gramplet/EditExifMetadata.py @@ -1287,13 +1287,13 @@ def rational_to_dms(coords): return deg, min, sec -def _format_datetime(exif_date): +def _format_datetime(exif_dt): """ Convert a python datetime object into a string for display, using the standard Gramps date format. """ - if not isinstance(exif_date, datetime): + if not isinstance(exif_dt, datetime): return "" date_part = gen.lib.Date()