Skip to content

ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC #64139

@4kir4

Description

@4kir4
mannequin
BPO 19940
Nosy @pitrou, @tiran, @4kir4
Files
  • patch.txt: Patch
  • patch.txt: Patch with the combined test case and code chages. This overrides the previous patch patch.txt.
  • ssl_cert_time_seconds.py: example cert_time_to_seconds(cert_time) implementation
  • ssl_cert_time_to_seconds.patch: Fixed code (timezone and locale issues), added tests, updated documention
  • ssl_cert_time_to_seconds-ps3.patch: changes following the review
  • ssl_cert_time_to_seconds-462470859e57.patch: simplify implementation
  • ssl_cert_time_to_seconds-ps5.patch
  • ssl_cert_time_to_seconds-ps6.patch: fix issues pointed out in the review
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2014-04-28.18:58:17.945>
    created_at = <Date 2013-12-10.07:29:12.424>
    labels = ['type-bug', 'library']
    title = 'ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC'
    updated_at = <Date 2014-04-28.22:46:14.088>
    user = 'https://github.com/4kir4'

    bugs.python.org fields:

    activity = <Date 2014-04-28.22:46:14.088>
    actor = 'akira'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-04-28.18:58:17.945>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2013-12-10.07:29:12.424>
    creator = 'akira'
    dependencies = []
    files = ['33217', '33254', '34197', '34201', '34594', '35050', '35051', '35075']
    hgrepos = []
    issue_num = 19940
    keywords = ['patch']
    message_count = 26.0
    messages = ['205774', '205803', '205814', '205815', '205860', '206616', '206617', '206620', '206629', '206635', '206666', '206810', '206825', '207083', '211988', '211992', '212022', '212380', '214637', '217243', '217245', '217373', '217392', '217394', '217395', '217435']
    nosy_count = 7.0
    nosy_names = ['janssen', 'pitrou', 'christian.heimes', 'docs@python', 'akira', 'python-dev', 'gudge']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue19940'
    versions = ['Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions