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

Feeds have trouble with time when changing from CEST to CET #430

Open
frankystone opened this issue Oct 29, 2023 · 1 comment
Open

Feeds have trouble with time when changing from CEST to CET #430

frankystone opened this issue Oct 29, 2023 · 1 comment

Comments

@frankystone
Copy link
Contributor

The problem occurs if a topic or post get added between 2 and 3 o'clock, the time the change from summertime to normal time happens. The error says e.g.:

AmbiguousTimeError at /forum/feeds/topics/5/
2023-10-29 02:43:19

I have solved the error now by changing the time of those posts/topics by adding one hour.

@frankystone
Copy link
Contributor Author

Traceback:

File "..../site-packages/django/core/handlers/exception.py" in inner
  34.             response = get_response(request)

File "..../site-packages/django/core/handlers/base.py" in _get_response
  115.                 response = self.process_exception_by_middleware(e, request)

File ".../site-packages/django/core/handlers/base.py" in _get_response
  113.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File ".../site-packages/django/contrib/syndication/views.py" in __call__
  39.         feedgen = self.get_feed(obj, request)

File ".../site-packages/django/contrib/syndication/views.py" in get_feed
  199.                 updateddate = make_aware(updateddate, tz)

File ".../site-packages/django/utils/timezone.py" in make_aware
  270.         return timezone.localize(value, is_dst=is_dst)

File ".../site-packages/pytz/tzinfo.py" in localize
  363.             raise AmbiguousTimeError(dt)

Exception Type: AmbiguousTimeError at /forum/feeds/topics/5/
Exception Value: 2023-10-29 02:43:19

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

No branches or pull requests

1 participant