def format_isodate(value, timezone=None):
 if (not value):
  return ''
 dt = dateutil.parser.parse(str(value))
 if timezone:
  dt = dt.astimezone(TZ(timezone))
 value = format_dt(dt)
 return value

def format_isodate ( value , timezone = None ) : if ( not value ) : return '' dt = dateutil . parser . parse ( str ( value ) ) if timezone : dt = dt . astimezone ( TZ ( timezone ) ) value = format_dt ( dt ) return value
make a iso date time string human friendly .