def submittable_timestamp(timestamp):
 return str(timezone.localtime(timestamp)).split(u'.')[0]

def submittable_timestamp ( timestamp ) : return str ( timezone . localtime ( timestamp ) ) . split ( u'.' ) [ 0 ]
helper function to translate a possibly-timezone-aware datetime into the format used in the go_live_at / expire_at form fields - "yyyy-mm-dd hh:mm" .