Skip to content

Commit 25afe59

Browse files
infosrabahfelixxm
authored andcommitted
Fixed #31268 -- Updated Algerian Arabic (ar_DZ) locale formats.
1 parent 3e7c39f commit 25afe59

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

django/conf/locale/ar_DZ/formats.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,28 @@
22
#
33
# The *_FORMAT strings use the Django date format syntax,
44
# see https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
5-
DATE_FORMAT = 'j F Y' # 04 نوفمبر 2020
6-
TIME_FORMAT = 'g:i A'
7-
# DATETIME_FORMAT =
5+
DATE_FORMAT = 'j F Y'
6+
TIME_FORMAT = 'H:i'
7+
DATETIME_FORMAT = 'j F Y H:i'
88
YEAR_MONTH_FORMAT = 'F Y'
99
MONTH_DAY_FORMAT = 'j F'
10-
SHORT_DATE_FORMAT = 'd‏/m‏/Y'
11-
# SHORT_DATETIME_FORMAT =
10+
SHORT_DATE_FORMAT = 'j F Y'
11+
SHORT_DATETIME_FORMAT = 'j F Y H:i'
1212
FIRST_DAY_OF_WEEK = 0 # Sunday
1313

1414
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
1515
# see https://docs.python.org/library/datetime.html#strftime-strptime-behavior
16-
# DATE_INPUT_FORMATS =
17-
# TIME_INPUT_FORMATS =
18-
# DATETIME_INPUT_FORMATS =
16+
DATE_INPUT_FORMATS = [
17+
'%Y/%m/%d', # '2006/10/25'
18+
]
19+
TIME_INPUT_FORMATS = [
20+
'%H:%M', # '14:30
21+
'%H:%M:%S', # '14:30:59'
22+
]
23+
DATETIME_INPUT_FORMATS = [
24+
'%Y/%m/%d %H:%M', # '2006/10/25 14:30'
25+
'%Y/%m/%d %H:%M:%S', # '2006/10/25 14:30:59'
26+
]
1927
DECIMAL_SEPARATOR = ','
2028
THOUSAND_SEPARATOR = '.'
2129
NUMBER_GROUPING = 3

0 commit comments

Comments
 (0)