Skip to content

ExpirationDate Converter Not Correctly Parsing Duration Directives #446

@sco1

Description

@sco1

dateparser's date parsing is not correctly parsing our expiration duration directives per what's expected by http://strftime.org/:

image

From limited testing, m and M are both parsed as minutes and y is not correctly parsed as year. Shorter duration directives (e.g. h/H and d/D) are parsed as "expected" (but not case sensitive).

This behavior is consistent across dateparser 0.7.0 (2018-02-08), 0.7.1 (2019-02-12), and 0.7.2 (2019-09-17) so I don't think it's a new issue, just one that we might not have noticed.

Metadata

Metadata

Assignees

Labels

a: moderationRelated to community moderation functionality: (moderation, defcon, verification)p: 0 - criticalNeeds to be addressed ASAPt: bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions