Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
chore(datepicker): test travis against minDate issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Jan 23, 2014
1 parent c04b59f commit ea9d24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ angular.module('mgcrea.ngStrap.datepicker', ['mgcrea.ngStrap.tooltip'])
// console.warn('attr.$observe(%s)=%o', key, newValue);
if(newValue === 'today') {
var today = new Date();
datepicker.$options[key] = +new Date(today.getFullYear(), today.getMonth(), today.getDate() + (key === 'maxDate' ? 1 : 0), (key === 'minDate' ? 1 : 0));
datepicker.$options[key] = +new Date(today.getUTCFullYear(), today.getUTCMonth(), today.getUTCDate() + (key === 'maxDate' ? 1 : 0), (key === 'minDate' ? 1 : 0));
} else if(angular.isString(newValue) && newValue.match(/^".+"$/)) {
datepicker.$options[key] = +new Date(newValue.substr(1, newValue.length - 2));
} else {
Expand Down

0 comments on commit ea9d24d

Please sign in to comment.