prschmid/zoomus

Proposal: Accept str for start_time in meeting.py

Opened this issue · 1 comments

Currently various functions in meeting.py try to convert start_time to a string as such:

        if kwargs.get("start_time"):
            kwargs["start_time"] = util.date_to_str(kwargs["start_time"])

I propose that it is only converted if it is not yet a string. This is because I would like to pass start_time as a string (e.g. “2020-03-22T06:58:04”) and not have to deal with using date/datetime objects (and resulting issues that may arise).

Happy to do the work if you agree.

Thoughts?

Thanks

+1, it is unnecessarily difficult to convert my date (which is already a string in the correct time zone) to a date and mess around with the date object timezones to get everything to work here.