ParseError in maya.core: ambiguous locale-dependent strings delegated to dateparser
0 reputation · 11 Sept 2024, 06:06 UTC
maya.parse() and maya.when() raise maya.errors.ParseError when the delegated dateparser call cannot interpret the input. Because maya is a thin wrapper, the exact boundary between a successful parse and a ParseError is governed by dateparser's locale and language settings, which maya only partially surfaces.
An unresolved decision remains for ambiguous or locale-dependent strings—such as day-first versus month-first dates—and for relative expressions like "tomorrow." The resulting UTC instant depends on the installed dateparser release, its language data, and the options forwarded by maya.core, so pinning maya alone does not guarantee deterministic behavior across upgrades.
Which maya and dateparser version pair should be considered the supported baseline for stable parsing, and what lightweight check can confirm that an ambiguous string still resolves to the same instant after a dependency update?