def _get_release_date(xblock, user=None):
 reset_to_default = False
 try:
  reset_to_default = (xblock.start.year < 1900)
 except ValueError:
  reset_to_default = True
 if (reset_to_default and user):
  xblock.start = DEFAULT_START_DATE
  xblock = _update_with_callback(xblock, user)
 return (get_default_time_display(xblock.start) if (xblock.start != DEFAULT_START_DATE) else None)

def _get_release_date ( xblock , user = None ) : reset_to_default = False try : reset_to_default = ( xblock . start . year < 1900 ) except ValueError : reset_to_default = True if ( reset_to_default and user ) : xblock . start = DEFAULT_START_DATE xblock = _update_with_callback ( xblock , user ) return ( get_default_time_display ( xblock . start ) if ( xblock . start != DEFAULT_START_DATE ) else None )
returns the release date for the xblock .