Skip to content

Commit

Permalink
Merge pull request #6753 from ashcoding/TIMOB-18728
Browse files Browse the repository at this point in the history
[TIMON-18728] Date Picker min and max date fixed to allow for years afte...
  • Loading branch information
hieupham007 committed Mar 31, 2015
2 parents 895c4dd + 242c34a commit 4922152
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public void processProperties(KrollDict d) {
minDateCalendar.set(Calendar.MILLISECOND, 0);

this.minDate = minDateCalendar.getTime();
picker.setMinDate(minDateCalendar.getTimeInMillis());
}
if (d.containsKey(TiC.PROPERTY_CALENDAR_VIEW_SHOWN)) {
setCalendarView(TiConvert.toBoolean(d, TiC.PROPERTY_CALENDAR_VIEW_SHOWN));
Expand All @@ -87,6 +88,7 @@ public void processProperties(KrollDict d) {
maxDateCalendar.set(Calendar.MILLISECOND, 0);

this.maxDate = maxDateCalendar.getTime();
picker.setMaxDate(maxDateCalendar.getTimeInMillis());
}
if (d.containsKey("minuteInterval")) {
int mi = d.getInt("minuteInterval");
Expand Down

0 comments on commit 4922152

Please sign in to comment.