<commit_before>(function ($) {

	"use strict";

	var	app = angular.module('RbsChange');

	function fixDoubleZero (val) {
		val = '' + val;
		if (val.length === 1) {
			val = '0' + val;
		}
		return val;
	}

	// Detect native date picker.
	var inputEl = document.createElement("input");
	inputEl.setAttribute("type", "date");
	var isNativeDatePickerAvailable = inputEl.type === 'date';


	/**
	 * @name dateSelector
	 */
	app.directive('dateSelector', ['RbsChange.Dialog', '$rootScope', 'RbsChange.i18n', function (Dialog, $rootScope, i18n) {
		return {
			restrict    : 'E',
			templateUrl : 'Rbs/Admin/js/directives/date-selector.twig',
			require     : 'ng-model',
			replace     : true,
			scope       : true,

			link : function (scope, elm, attrs, ngModel) {
				scope.timeZone = $rootScope.timeZone;

				var	dInput = $(elm).find('[data-role="input-date"]').first(),
					hInput = $(elm).find('[data-role="input-hour"]').first(),
					mInput = $(elm).find('[data-role="input-minute"]').first(),
					datePicker;
<commit_msg>[FIX] incorrect init of timeZone<commit_after>(function ($) {

	"use strict";

	var	app = angular.module('RbsChange');

	function fixDoubleZero (val) {
		val = '' + val;
		if (val.length === 1) {
			val = '0' + val;
		}
		return val;
	}

	// Detect native date picker.
	var inputEl = document.createElement("input");
	inputEl.setAttribute("type", "date");
	var isNativeDatePickerAvailable = inputEl.type === 'date';


	/**
	 * @name dateSelector
	 */
	app.directive('dateSelector', ['RbsChange.Dialog', '$rootScope', 'RbsChange.i18n', function (Dialog, $rootScope, i18n) {
		return {
			restrict    : 'E',
			templateUrl : 'Rbs/Admin/js/directives/date-selector.twig',
			require     : 'ng-model',
			replace     : true,
			scope       : true,

			link : function (scope, elm, attrs, ngModel) {

				scope.timeZone = $rootScope.settings.timeZone;

				var	dInput = $(elm).find('[data-role="input-date"]').first(),
					hInput = $(elm).find('[data-role="input-hour"]').first(),
					mInput = $(elm).find('[data-role="input-minute"]').first(),
					datePicker;

{'fraction_non_alphanumeric': 0.1890856869315462, 'fraction_numerical': 0.0057443752991862135, 'mean_word_length': 3.4946236559139785, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4640215', 'n_tokens_mistral': 813, 'n_tokens_neox': 714, 'n_words': 142}