Skip to content

Error adding new torrent during winter time shift #125

Description

@OdinGitDat

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions