Skip to content

Commit a7673fb

Browse files
authored
Update ADM-dateTimePicker.js
1 parent 46b7f0b commit a7673fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dist/ADM-dateTimePicker.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -931,10 +931,7 @@
931931

932932
scope.today = function() {
933933
var _standValue = new Date();
934-
_standValue.setHours(0,0,0,0);
935-
936-
if (scope.calType == 'jalali')
937-
_standValue = ADMdtpFactory.convertToJalali(_standValue);
934+
_standValue.setUTCHours(0,0,0,0);
938935

939936
var _day = {
940937
day: _standValue.getDate(),
@@ -952,6 +949,9 @@
952949

953950
scope.selectThisDay(_day);
954951

952+
if (scope.calType == 'jalali')
953+
_standValue = ADMdtpFactory.convertToJalali(_standValue);
954+
955955
$timeout(function() {
956956
admDtp.fillDays(_standValue, !scope.option.transition);
957957
},0);

0 commit comments

Comments
 (0)