Hi

I have this simple code that prints out the date the backtest goes through, but the end date is changed to 2024-04-20 in self.OnData():

96|5:54:34:2024-07-18 23:59:59.999999

98|5:54:34:OnData: 2024-04-20 23:59:59.999999

Does anyone know why this is the case? Thanks

class Test(QCAlgorithm):

    def initialize(self):
        self.set_start_date(2024, 3, 18)
        self.set_end_date(datetime.now())

        self.aapl = self.add_equity("AAPL", Resolution.Daily).Symbol

        self.Debug(f'{self.EndDate}')

    def OnData(self, data: Slice):
        self.Debug(f'OnData: {self.EndDate}')