Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ical export breaks #393

Closed
gyst opened this issue May 7, 2024 · 0 comments · Fixed by #394
Closed

ical export breaks #393

gyst opened this issue May 7, 2024 · 0 comments · Fixed by #394

Comments

@gyst
Copy link
Member

gyst commented May 7, 2024

I guess this is because 'Africa/Abidjan' is perhaps the first timezone?

  Module plone.app.event.ical.exporter, line 408, in __call__
  Module plone.app.event.ical.exporter, line 404, in get_ical_string
  Module zope.component.hooks, line 144, in adapter_hook
  Module plone.app.event.ical.exporter, line 177, in calendar_from_container
  Module plone.app.event.ical.exporter, line 65, in construct_icalendar
  Module plone.app.event.ical.exporter, line 144, in add_to_zones_map
  Module plone.app.event.ical.exporter, line 140, in localize
  Module pytz.tzinfo, line 204, in fromutc
OverflowError: date value out of range
(Pdb) tz
<DstTzInfo 'Africa/Abidjan' LMT-1 day, 23:44:00 STD>
(Pdb) prev_transition
datetime.datetime(1, 1, 1, 0, 0)
(Pdb) tzmap
{}
(Pdb) tzid
'Africa/Abidjan'
(Pdb) dt
datetime.datetime(2015, 2, 5, 0, 0, tzinfo=<DstTzInfo 'Africa/Abidjan' GMT0:00:00 STD>)

(Pdb) datetime.min
datetime.datetime(1, 1, 1, 0, 0)
(Pdb) prev_transition
datetime.datetime(1, 1, 1, 0, 0)
(Pdb) prev_transition is datetime.min
True
(Pdb) prev_transition is null
False

Fix forthcoming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant