Ensure datetime_format warning is only raised once
#2737
Merged
datetime_format warning is only raised once
#2737