karlicoss / orgparse

Python module for reading Emacs org-mode files
https://orgparse.readthedocs.org
BSD 2-Clause "Simplified" License
371 stars 43 forks source link

Fixed OrgDate._as_datetime, added test #43

Closed tbruckmaier closed 2 years ago

tbruckmaier commented 3 years ago

when a datetime object was passed, time information got lost (datetime.datetime is a child of datetime.date, so datetime objects were wrongly converted)

karlicoss commented 2 years ago

thanks! sorry it took me a while to get to it, I'll do a pypi release soon as well