Revision 371d907a pithos/api/util.py

b/pithos/api/util.py
104 104
    Format 'last_modified' timestamp.
105 105
    """
106 106
    
107
    if 'last_modified' in d:
107
    if 'last_modified' in d and d['last_modified']:
108 108
        d['last_modified'] = isoformat(datetime.fromtimestamp(d['last_modified']))
109 109
    return dict([(k.lower().replace('-', '_'), v) for k, v in d.iteritems()])
110 110

  

Also available in: Unified diff