BUG: Rolling pd.date_range incorrect for unit='s' #55026
- [X] closes #55026
- [X] [Tests added and passed]

This follows the #55173 and will be fixed by the same approach. The custom tests were added for the `max` function itself.
Thanks. Could you just include this test in https://github.com/pandas-dev/pandas/pull/55173? Closing in favor of moving this there > Thanks. Could you just include this test in #55173? Closing in favor of moving this there

Of course :) Done