From db69830ffefd0bb888a16b6f6bced0515c7bba46 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 6 Oct 2015 23:32:26 +0200 Subject: [PATCH] Use i18n meta infos. --- app/assets/javascripts/app/controllers/layout_ref.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/controllers/layout_ref.coffee b/app/assets/javascripts/app/controllers/layout_ref.coffee index 48753c140..32a48398f 100644 --- a/app/assets/javascripts/app/controllers/layout_ref.coffee +++ b/app/assets/javascripts/app/controllers/layout_ref.coffee @@ -1509,15 +1509,16 @@ class InputsRef extends App.ControllerContent # date picker @$('.js-datepicker3').datepicker( todayHighlight: true - startDate: new Date().toLocaleDateString('de-DE') # returns 25.09.2015 - format: 'dd.mm.yyyy', + startDate: new Date() + format: App.i18n.timeFormat().date container: @$('.js-datepicker3').parent() ) # date time picker @$('.js-datepicker4').datepicker( todayHighlight: true - startDate: new Date().toLocaleDateString('en-US') # returns 9/25/2015 + startDate: new Date() + format: App.i18n.timeFormat().date container: @$('.js-datepicker4').parent() ) @$('.js-timepicker4').timepicker()