python - Cannot read a greek localized date in django -


I want to read the localized Greek date for my own project. The correct format for the Greek date is dd / mm / yy (ef 22/2/2012).

Now, I have set my project language (settings.py) in 'L' (for Greek) and I have made a dateinput with localization = True. I get an error (invalid format) response if I try to enter a DD / MM / IE format. On the other hand if I try to enter a mm / dd / i.e. it works fine. In addition, if I change the language of my project from 'L' to 'N-GB' (for UK English), then DD / MM / I format has been successfully accepted .

Before being insane, I saw the file more specifically on the DNS source code:

in which the formats of Greece should include , But it should be extracted that DATE_INPUT_FORMATS commented on the other hand, two valid for DATE_INPUT_FORMATS in the same file for UK English () What are the entries related to this problem?

I know that I can set the widget format (as described in this question) though I would really like to use L10 N capabilities and not each language I want to add different date formats for: I want to support: (


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -