RudolfCardinal / pythonlib

Miscellaneous Python support functions
Apache License 2.0
11 stars 5 forks source link

Fix coerce_to_pendulum() for python datetime.date #4

Closed martinburchell closed 4 years ago

martinburchell commented 4 years ago

coerce_to_pendulum() was returning a naive pendulum DateTime if given a standard python datetime.date object. This is because:

This fix replaces the call to Pendulum DateTime.combine()with the standard python datetime.combine(), which means that the tz argument won't be ignored

RudolfCardinal commented 4 years ago

Interesting -- thanks! Worth bumping the version and updating the changelog at this point?