def date_range(tzinfo: dt.tzinfo) -> list[dt.datetime]:
    """Return a list of datetimes for the current day."""
    start_of_day = dt.datetime.now(tzinfo).replace(
        hour=0,
        minute=0,
        second=0,
        microsecond=0,
    )
    # one second before the next day
    end_of_day = start_of_day + dt.timedelta(days=1) - dt.timedelta(seconds=1)
    hours_range = [start_of_day]
    while hours_range[-1] < end_of_day:
        hours_range.append(hours_range[-1] + dt.timedelta(minutes=1))
    return hours_range[:-1]
Return a list of datetimes for the current day.
webapp/app.py