Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix: parse_date_str and parse_datetime_str respect localized formats#1646

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
brandenhall wants to merge2 commits intounfoldadmin:main
base:main
Choose a base branch
Loading
frombrandenhall:main

Conversation

@brandenhall
Copy link

This is a fix forissue 1645

Rather than directly pullingDATE_INPUT_FORMATS andDATETIME_INPUT_FORMATS directly fromsettings, this fix now gets those values via a call toformats.get_format, which handles getting the correct values from Django's localization system.

@lukasvinclav
Copy link
Contributor

@brandenhall I was testing the implementation but I think it does not support custom formats fromsettings.py. Example:

# settings.pyDATE_INPUT_FORMATS= ["%d.%m.%Y",# Custom input"%Y-%m-%d",# '2006-10-25']

@lukasvinclav
Copy link
Contributor

@brandenhall any update?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@brandenhall@lukasvinclav@avcbranden

[8]ページ先頭

©2009-2025 Movatter.jp