def localdate(value=None, timezone=None):
 return localtime(value, timezone).date()

def localdate ( value = None , timezone = None ) : return localtime ( value , timezone ) . date ( )
convert an aware datetime to local time and return the values date .