potiuk commented on PR #29395:
URL: https://github.com/apache/airflow/pull/29395#issuecomment-1419931607

   I think this is the only way to proceed even though it introduces potential 
backwards-compatibility for those for whom the validation accidentally worked 
before:
   
   Example snipppet of code showing how `date-time` fields will be validated 
after installing the validator:
   
   ```
   >>> from airflow.utils.timezone import datetime
   >>> from rfc3339_validator import validate_rfc3339
   >>> dtt =  datetime(2020, 1, 1)
   >>> print(dtt)
   2020-01-01 00:00:00+00:00
   >>> validate_rfc3339(str(dtt))
   False
   >>> validate_rfc3339('2020-01-01T00:00:00+00:00')
   True
   >>> validate_rfc3339('2020-01-01T00:00:00')
   False
   ```
   


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