yuseok89 commented on code in PR #75530:
URL: https://github.com/apache/airflow/pull/75530#discussion_r4463761719
##########
providers/standard/src/airflow/providers/standard/operators/datetime.py:
##########
@@ -110,5 +111,9 @@ def target_times_as_dates(
return lower, upper
if upper < lower:
- upper += datetime.timedelta(days=1)
+ # Past midnight, the window that contains base_date started the
previous day
+ if lower_is_time and base_date.time() <= upper.time():
+ lower -= datetime.timedelta(days=1)
+ else:
+ upper += datetime.timedelta(days=1)
Review Comment:
Would a `datetime` `target_upper` need the same guard? This line can still
move it to the next day.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]