(self, to_tz)
Sets the dates in this object to a specific timezone. This will actually change
        the times (as opposed, to setting the timezone and adjusting the times). So
        3pm in EST will be converted to PST as 3pm (so 6pm in EST) instead of adjusting
        the time.
Sets the dates in this object to a specific timezone. This will actually change
        the times (as opposed, to setting the timezone and adjusting the times). So
        3pm in EST will be converted to PST as 3pm (so 6pm in EST) instead of adjusting
        the time.
Sets the dates in this object to a specific timezone . This will actually change the times ( as opposed to setting the timezone and adjusting the times ) . So 3pm in EST will be converted to PST as 3pm ( so 6pm in EST ) instead of adjusting the time .
def set_timezone(self, to_tz):
        """
        Sets the dates in this object to a specific timezone. This will actually change
        the times (as opposed, to setting the timezone and adjusting the times). So
        3pm in EST will be converted to PST as 3pm (so 6pm in EST) instead of adjusting
        the time.
        """
        self.startdate = to_tz.localize(self.startdate.replace(tzinfo=None))
        self.enddate = to_tz.localize(self.enddate.replace(tzinfo=None))
        self.timezone = to_tz
def set_timezone ( self , to_tz ) : self . startdate = to_tz . localize ( self . startdate . replace ( tzinfo = None ) ) self . enddate = to_tz . localize ( self . enddate . replace ( tzinfo = None ) ) self . timezone = to_tz