collective / icalendar

icalendar parser library for Python

Home Page:https://icalendar.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

test_issue_335_identify_UTC fails?

jacadzaca opened this issue · comments

commented

Running test_issue_335_identify_UTC fails on my machine. Seems to be a timezone issue, since the diff shows that the dates are an hour apart. Any idea why that is?

Full testlog

commented

I think the issue is in line 506, since astimezone actually converts the given datetime to the timezone

If I change line line 505 to dt = datetime.datetime(2021, 11, 17, 15, 9, 15, tzinfo=zone) and line 506 to myevent.add('dtstart', dt) the tests pass, so it must be it

Hm. Is this changed in the tests in the master branch? I would close it then. The test code might be wrong.

Ah. OK. The app I am using does not show the link to the merged PR. Alright.