Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Makes a datetime object a naive object
    

        def universify_datetime(dt):
    """Makes a datetime object a naive object
    """
    utc = pytz.timezone('UTC')
    utc_dt = dt.astimezone(utc)
    utc_dt = utc_dt.replace(tzinfo=None)
    return utc_dt
        


src/t/o/todopyramid-HEAD/todopyramid/views.py   todopyramid(Download)
from .schema import TodoSchema
from .utils import localize_datetime
from .utils import universify_datetime
 
 
                if due_date is not None:
                    # Convert back to UTC for storage
                    due_date = universify_datetime(due_date)
                task_name = captured.get('name')
                task = TodoItem(