Based on the way date are represented in algeria, the actual
SHORT_DATE_FORMAT is 'd/m/Y' but he correct foramt is 'Y/m/d'.
The actual locale ar-DZ formats are also missing (pull request pending )
:
SHORT_DATE_FORMAT = 'Y/m/d'
DATE_INPUT_FORMATS = [
'%Y/%m/%d', '%y/%m/%d', # '2006/10/25', '06/10/25'
]
TIME_INPUT_FORMATS = [
'%H:%M', # '14:30
'%H:%M:%S', # '14:30:59'
]
DATETIME_INPUT_FORMATS = [
'%Y/%m/%d %H:%M', # '2006/10/25 14:30'
'%Y/%m/%d %H:%M:%S', # '2006/10/25 14:30:59'
]
NUMBER_GROUPING = 3
-----------
The actual Date format are not the exact représentation of a dates in the
country.
--
Ticket URL: <https://code.djangoproject.com/ticket/31268>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "formats.py" added.
correct format ar-DZ locale for Algeria country
* status: new => assigned
* component: Uncategorized => Internationalization
* version: 3.0 => master
* owner: nobody => infosrabah
* stage: Unreviewed => Accepted
Old description:
> Hi,
>
> Based on the way date are represented in algeria, the actual
> SHORT_DATE_FORMAT is 'd/m/Y' but he correct foramt is 'Y/m/d'.
> The actual locale ar-DZ formats are also missing (pull request pending )
> :
>
> SHORT_DATE_FORMAT = 'Y/m/d'
>
> DATE_INPUT_FORMATS = [
> '%Y/%m/%d', '%y/%m/%d', # '2006/10/25', '06/10/25'
> ]
> TIME_INPUT_FORMATS = [
> '%H:%M', # '14:30
> '%H:%M:%S', # '14:30:59'
> ]
> DATETIME_INPUT_FORMATS = [
> '%Y/%m/%d %H:%M', # '2006/10/25 14:30'
> '%Y/%m/%d %H:%M:%S', # '2006/10/25 14:30:59'
> ]
>
> NUMBER_GROUPING = 3
> -----------
> The actual Date format are not the exact représentation of a dates in the
> country.
New description:
Hi,
Based on the way date are represented in Algeria, the actual
`SHORT_DATE_FORMAT` is `'d/m/Y'` but the correct format is `'Y/m/d'`.
The actual locale ar-DZ formats are also missing (pull request pending):
{{{
SHORT_DATE_FORMAT = 'Y/m/d'
DATE_INPUT_FORMATS = [
'%Y/%m/%d', '%y/%m/%d', # '2006/10/25', '06/10/25'
]
TIME_INPUT_FORMATS = [
'%H:%M', # '14:30
'%H:%M:%S', # '14:30:59'
]
DATETIME_INPUT_FORMATS = [
'%Y/%m/%d %H:%M', # '2006/10/25 14:30'
'%Y/%m/%d %H:%M:%S', # '2006/10/25 14:30:59'
]
NUMBER_GROUPING = 3
}}}
-----------
The actual Date format are not the exact representation of a dates in the
country.
-----------
Even if most RTL other countries are using or still using `'d/m/Y '`,
Algeria is not. For every date on any resource (News, Official
communications, News paper) that using Arabic as a language, the Date
format is `'Y/m/d'`.
[https://en.wikipedia.org/wiki/Algeria The Wikipedia] describes the French
language in Algeria (`fr-DZ`) LTR, not the Arabic (`ar-DZ`) that we are
talking about here.
--
Comment:
[https://github.com/django/django/pull/12422 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/31268#comment:1>
* has_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/31268#comment:2>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/12625 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/31268#comment:3>
Old description:
> Hi,
>
> Based on the way date are represented in Algeria, the actual
> `SHORT_DATE_FORMAT` is `'d/m/Y'` but the correct format is `'Y/m/d'`.
> The actual locale ar-DZ formats are also missing (pull request pending):
> {{{
> SHORT_DATE_FORMAT = 'Y/m/d'
>
> DATE_INPUT_FORMATS = [
> '%Y/%m/%d', '%y/%m/%d', # '2006/10/25', '06/10/25'
> ]
> TIME_INPUT_FORMATS = [
> '%H:%M', # '14:30
> '%H:%M:%S', # '14:30:59'
> ]
> DATETIME_INPUT_FORMATS = [
> '%Y/%m/%d %H:%M', # '2006/10/25 14:30'
> '%Y/%m/%d %H:%M:%S', # '2006/10/25 14:30:59'
> ]
>
> NUMBER_GROUPING = 3
> }}}
> -----------
> The actual Date format are not the exact representation of a dates in the
> country.
> -----------
>
> Even if most RTL other countries are using or still using `'d/m/Y '`,
> Algeria is not. For every date on any resource (News, Official
> communications, News paper) that using Arabic as a language, the Date
> format is `'Y/m/d'`.
>
> [https://en.wikipedia.org/wiki/Algeria The Wikipedia] describes the
> French language in Algeria (`fr-DZ`) LTR, not the Arabic (`ar-DZ`) that
> we are talking about here.
New description:
Based on the way date are represented in Algeria, the actual
`SHORT_DATE_FORMAT` is `'d/m/Y'` but the correct format is `'j F Y'`.
The actual locale `ar-DZ` formats are also missing (pull request pending):
{{{
SHORT_DATE_FORMAT = 'j F Y'
SHORT_DATETIME_FORMAT = 'j F Y H:i'
DATE_INPUT_FORMATS = [
'%Y/%m/%d', # '2006/10/25'
]
TIME_INPUT_FORMATS = [
'%H:%M', # '14:30
'%H:%M:%S', # '14:30:59'
]
DATETIME_INPUT_FORMATS = [
'%Y/%m/%d %H:%M', # '2006/10/25 14:30'
'%Y/%m/%d %H:%M:%S', # '2006/10/25 14:30:59'
]
NUMBER_GROUPING = 3
}}}
-----------
The actual Date format are not the exact representation of a dates in the
country.
-----------
Even if most RTL other countries are using or still using `'d/m/Y '`,
Algeria is not. For every date on any resource (News, Official
communications, News paper) that using Arabic as a language, the Date
format is `'j F Y'`.
[https://en.wikipedia.org/wiki/Algeria The Wikipedia] describes the French
language in Algeria (`fr-DZ`) LTR, not the Arabic (`ar-DZ`) that we are
talking about here.
Abbreviations of months don't exist in Algerian Arabic that's why we need
to use `N` in short formats instead of `F`.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/31268#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"25afe59d342ac0fb77f523b8da42aa166c6e1503" 25afe59]:
{{{
#!CommitTicketReference repository=""
revision="25afe59d342ac0fb77f523b8da42aa166c6e1503"
Fixed #31268 -- Updated Algerian Arabic (ar_DZ) locale formats.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31268#comment:5>