Open deangoodmanson opened 6 years ago
That's because you're using CST (central standard time) in the string, which is specifically not CDT (central daylight time). I would test removing the timezone from your string, then changing
start = dateparser.parse(st)
to
start = dateparser.parse(st, settings={'TIMEZONE': 'US/Central'})
That should give you the results you're looking for. I think using US/Central (and therefore not specifying CST vs CDT) will account for daylight savings automatically.
CST DST UTC offset is -5 in summer, -6 in winter. -6 is being used in summer.