Skip to content

Commit

Permalink
Fixed issue #8787: Timezone problem w/ minmax date in datepicker
Browse files Browse the repository at this point in the history
  • Loading branch information
mfaber committed Mar 1, 2014
1 parent 4a413a1 commit 84404d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/date.js
Expand Up @@ -117,8 +117,8 @@ function setPickerOptions(input)
return {
// set minimum and maximum date
// remove the time component for Firefox
minDate: new Date(Date.parse(datemin.substr(0,10))),
maxDate: new Date(Date.parse(datemax.substr(0,10))),
minDate: Date.parseString(datemin.substr(0,10), "yyyy-mm-dd"),
maxDate: Date.parseString(datemax.substr(0,10), "yyyy-mm-dd"),
//set the other options so datetimepicker is either a datepicker or a timepicker or both
showTimepicker: bshowTimepicker,
timeOnly: btimeOnly,
Expand Down

0 comments on commit 84404d6

Please sign in to comment.