Skip to content

email.utils.parsedate_to_datetime() should return None when date cannot be parsed#74866

@timb07

Description

@timb07
mannequin
BPO30681
Nosy@warsaw, @ncoghlan, @bitdancer, @ambv, @serhiy-storchaka, @sim0nx, @timb07, @miss-islington
PRs
  • bpo-30681: Change error handling to return None in case of invalid date #2229
  • bpo-30681: Support invalid date format or value #2254
  • bpo-30681: Support invalid date format or value in email Date header #10783
  • bpo-30681: Support invalid date format or value in email Date header #22090
  • 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=Noneclosed_at=Nonecreated_at=<Date2017-06-15.23:12:43.396>labels= ['type-bug', 'expert-email', '3.10'] title='email.utils.parsedate_to_datetime() should return None when date cannot be parsed'updated_at=<Date2020-10-27.07:37:48.458>user='https://github.com/timb07'

    bugs.python.org fields:

    activity=<Date2020-10-27.07:37:48.458>actor='serhiy.storchaka'assignee='none'closed=Falseclosed_date=Nonecloser=Nonecomponents= ['email'] creation=<Date2017-06-15.23:12:43.396>creator='timb07'dependencies= [] files= [] hgrepos= [] issue_num=30681keywords= ['patch'] message_count=18.0messages= ['296137', '296141', '296153', '296154', '296215', '296226', '296231', '296235', '296361', '301618', '330628', '330648', '376384', '379381', '379412', '379464', '379706', '379742'] nosy_count=8.0nosy_names= ['barry', 'ncoghlan', 'r.david.murray', 'lukasz.langa', 'serhiy.storchaka', 'sim0n', 'timb07', 'miss-islington'] pr_nums= ['2229', '2254', '10783', '22090'] priority='normal'resolution='fixed'stage='resolved'status='open'superseder=Nonetype='behavior'url='https://bugs.python.org/issue30681'versions= ['Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixesstdlibStandard Library Python modules in the Lib/ directorytopic-emailtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions