andialbrecht / sqlparse

A non-validating SQL parser module for Python
BSD 3-Clause "New" or "Revised" License
3.71k stars 693 forks source link

Linux Pandas.date_range doesn't include 02 AM even for utc tz #755

Open jtnguyen2020 opened 9 months ago

jtnguyen2020 commented 9 months ago

Describe the bug pd.date_range(start='2024-01-01', end='2024-12-31', freq='5T', tz='UTC', name='start_dt')

above doesn't include 2024-03-10 02:00:00 thru 2024-03-10 02:55:00

To Reproduce import pandas as pd pd.date_range(start='2024-01-01', end='2024-12-31', freq='5T', tz='UTC', name='start_dt')

Expected behavior If I used utc as timezone, it should include 2024-03-10 02:00:00 thru 2024-03-10 02:55:00

Versions (please complete the following information):

Additional context Add any other context about the problem here.