def getappletime(value):
'''Converts a numeric Apple time stamp into a date and time'''
if not value: # Add
return None # Add
try:
return datetime.datetime.fromtimestamp(APPLE_BASE + float(value))
except ValueError, _e:
# bad time stamp in database, default to "now"
return datetime.datetime.now()
For a normal export, Phoshare doesn't actually need the date of an album, so this should be fine.
Tilman