Fixed errors in _format_datetime() to match corrections from Nick Hall.
svn: r17712
This commit is contained in:
parent
3b73e4f138
commit
1d6017bde5
@ -1287,13 +1287,13 @@ def rational_to_dms(coords):
|
|||||||
|
|
||||||
return deg, min, sec
|
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
|
Convert a python datetime object into a string for display, using the
|
||||||
standard Gramps date format.
|
standard Gramps date format.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not isinstance(exif_date, datetime):
|
if not isinstance(exif_dt, datetime):
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
date_part = gen.lib.Date()
|
date_part = gen.lib.Date()
|
||||||
|
Loading…
Reference in New Issue
Block a user