mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 19:50:05 -03:30
add locale hack back in to scheduler date picker directive
This commit is contained in:
@@ -20,6 +20,11 @@ export default
|
|||||||
},
|
},
|
||||||
templateUrl: templateUrl('system-tracking/date-picker/date-picker'),
|
templateUrl: templateUrl('system-tracking/date-picker/date-picker'),
|
||||||
link: function(scope, element, attrs) {
|
link: function(scope, element, attrs) {
|
||||||
|
var lang = window.navigator.languages ?
|
||||||
|
window.navigator.languages[0] :
|
||||||
|
(window.navigator.language ||
|
||||||
|
window.navigator.userLanguage);
|
||||||
|
moment.locale(lang);
|
||||||
// We need to make sure this _never_ recurses, which sometimes happens
|
// We need to make sure this _never_ recurses, which sometimes happens
|
||||||
// with two-way binding.
|
// with two-way binding.
|
||||||
var mustUpdateValue = true;
|
var mustUpdateValue = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user