Skip to content

Commit 0eaad91

Browse files
committed
Merge pull request #2 from shwoop/tc-special
Force locale on rendering of datetimepicker
2 parents 7675a4d + dcc5997 commit 0eaad91

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
16 KB
Binary file not shown.

bootstrap3_datetime/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def conv_datetime_format_js2py(cls, format):
6666
# commit 042dd1da3a7ff21010c1273c092cba108d95baeb is messing with the ajax load so rolled back
6767
js_template = '''
6868
<script>
69-
$(function(){$("#%(picker_id)s:has(input:not([readonly],[disabled]))").datetimepicker(%(options)s);});
69+
$(function(){moment.locale("''' + translation.get_language() + '''");$("#%(picker_id)s:has(input:not([readonly],[disabled]))").datetimepicker(%(options)s);});
7070
</script>'''
7171

7272
def __init__(self, attrs=None, format=None, options=None, div_attrs=None, icon_attrs=None):

0 commit comments

Comments
 (0)