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

Error adding new torrent during winter time shift #125

Open
OdinGitDat opened this issue Oct 27, 2019 · 1 comment
Open

Error adding new torrent during winter time shift #125

OdinGitDat opened this issue Oct 27, 2019 · 1 comment

Comments

@OdinGitDat
Copy link

OdinGitDat commented Oct 27, 2019

Since today any torrent I try to add gives the same error (except timestamp at the end).

Traceback (most recent call last):
  File "/home/odin/WhatManager2/what_json/views.py", line 183, in add_torrent
    m_torrent = manage_torrent.add_torrent(request, instance, download_location, what_id, True)
  File "/home/odin/WhatManager2/WhatManager2/manage_torrent.py", line 48, in add_torrent
    norm_t_torrent(t_torrent)
  File "/home/odin/WhatManager2/WhatManager2/utils.py", line 54, in norm_t_torrent
    t.date_added_tz = timezone.make_aware(t.date_added, timezone.get_default_timezone())
  File "/usr/local/lib/python2.7/dist-packages/django/utils/timezone.py", line 358, in make_aware
    return timezone.localize(value, is_dst=None)
  File "/usr/local/lib/python2.7/dist-packages/pytz/tzinfo.py", line 363, in localize
    raise AmbiguousTimeError(dt)
AmbiguousTimeError: 2019-10-27 02:40:01

AmbigiousTimeError? I suspect it has something to do with the change to wintertime today. Not sure how to fix this.

@OdinGitDat
Copy link
Author

This only happens during the hour that occurs twice (at 3am the clock is put back to 2am).

@OdinGitDat OdinGitDat changed the title Error adding new torrent Error adding new torrent during winter time shift Oct 27, 2019
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