Skip to content

Commit

Permalink
Update ADM-dateTimePicker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm authored Aug 21, 2017
1 parent 46b7f0b commit a7673fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/ADM-dateTimePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -931,10 +931,7 @@

scope.today = function() {
var _standValue = new Date();
_standValue.setHours(0,0,0,0);

if (scope.calType == 'jalali')
_standValue = ADMdtpFactory.convertToJalali(_standValue);
_standValue.setUTCHours(0,0,0,0);

var _day = {
day: _standValue.getDate(),
Expand All @@ -952,6 +949,9 @@

scope.selectThisDay(_day);

if (scope.calType == 'jalali')
_standValue = ADMdtpFactory.convertToJalali(_standValue);

$timeout(function() {
admDtp.fillDays(_standValue, !scope.option.transition);
},0);
Expand Down

0 comments on commit a7673fb

Please sign in to comment.