uranusjr commented on a change in pull request #18675:
URL: https://github.com/apache/airflow/pull/18675#discussion_r720780406



##########
File path: airflow/www/utils.py
##########
@@ -41,6 +43,47 @@
 from airflow.www.widgets import AirflowDateTimePickerWidget
 
 
+def datetime_to_string(value: Optional[DateTime]) -> Optional[str]:

Review comment:
       I think this can be just (the stdlib) `datetime.datetime` and not 
restricted to `pendulum`. Also there's a similar function in `views.py` so we 
should refactor that to use this function as well.




-- 
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]


Reply via email to