Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve date/time parsing #834

Merged
merged 3 commits into from Jan 28, 2022
Merged

Improve date/time parsing #834

merged 3 commits into from Jan 28, 2022

Commits on Jan 28, 2022

  1. Improve partial time parsing

    Refs python-babel#442
    
    Co-authored-by: David Bauer <david.bauer009@gmail.com>
    Co-authored-by: Arthur Jovart <arthur@jovart.com>
    3 people committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    7aee5b8 View commit details
    Browse the repository at this point in the history
  2. Add and emit dates.ParseError

    akx committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    335884a View commit details
    Browse the repository at this point in the history
  3. Add format argument to parse_*

    ``parse_date()`` does not allow the user to specify the date's format
    and the 'medium' format is used by default in the call to
    ``get_date_format()`` on line 1144.
    
    This results in a failure to parse the date in short format for the
    locale 'sv_SE'. This commit adds the format argument to avoid this
    failure. The default value is set to 'medium' to preserve the old behavior.
    
    Fixes python-babel#657
    
    Co-authored-by: Aarni Koskela <akx@iki.fi>
    j4321 and akx committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    8a5e4bd View commit details
    Browse the repository at this point in the history