Fixed errors in _format_datetime() to match corrections from Nick Hall.

svn: r17712
This commit is contained in:
Rob G. Healey 2011-06-08 00:30:27 +00:00
parent 3b73e4f138
commit 1d6017bde5

View File

@ -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()