Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save meGAmeS1/76607896ee67d32dc9df to your computer and use it in GitHub Desktop.

Select an option

Save meGAmeS1/76607896ee67d32dc9df to your computer and use it in GitHub Desktop.

Revisions

  1. meGAmeS1 revised this gist Nov 25, 2015. No changes.
  2. meGAmeS1 revised this gist Nov 25, 2015. No changes.
  3. meGAmeS1 created this gist Nov 25, 2015.
    6 changes: 6 additions & 0 deletions django-bootstrap3-datetimepicker Moment Locale Workaround
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    {% get_current_language as LANGUAGE_CODE %}
    <script type="text/javascript">
    $(function () {
    $.fn.datetimepicker.defaults.locale = moment.locale('{{ LANGUAGE_CODE }}');
    });
    </script>