mezzanine_events/utils.py
def combine_dt(d, t):
        """
        Combine naive date and time into an aware datetime
        """
        if not isinstance(d, date):
            d = datetime.strptime(d, "%Y-%m-%d").date()
        if not isinstance(t, time):
            t = datetime.strptime(t, "%H:%M:%S").time()
        return make_aware(datetime.combine(d, t))

        Combine naive date and time into an aware datetime
        
Combine naive date and time into an aware datetime
Combine naive date and time into an aware datetime
def combine_dt(d, t):
        if not isinstance(d, date):
            d = datetime.strptime(d, "%Y-%m-%d").date()
        if not isinstance(t, time):
            t = datetime.strptime(t, "%H:%M:%S").time()
        return make_aware(datetime.combine(d, t))
def combine_dt ( d , t ) : if not isinstance ( d , date ) : d = datetime . strptime ( d , "%Y-%m-%d" ) . date ( ) if not isinstance ( t , time ) : t = datetime . strptime ( t , "%H:%M:%S" ) . time ( ) return make_aware ( datetime . combine ( d , t ) )
Combine naive date and time into an aware datetime
Combine naive date and time into an aware datetime
"""
        Combine naive date and time into an aware datetime
        """
d
t