Skip to content

Commit

Permalink
[Catalog][DatePicker] Fix incorrect time stamps
Browse files Browse the repository at this point in the history
Resolves #3132

GIT_ORIGIN_REV_ID=c918a0dc107d164bdc486788f5def004c5bdeb77
PiperOrigin-RevId: 493921722

(cherry picked from commit 86fc5fa)
  • Loading branch information
pubiqq authored and dsn5ft committed Dec 9, 2022
1 parent 8cbfd20 commit 305e19d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private void initSettings() {
today = MaterialDatePicker.todayInUtcMilliseconds();
Calendar calendar = getClearedUtc();
calendar.setTimeInMillis(today);
calendar.roll(Calendar.MONTH, 1);
calendar.add(Calendar.MONTH, 1);
nextMonth = calendar.getTimeInMillis();

calendar.setTimeInMillis(today);
Expand All @@ -79,7 +79,7 @@ private void initSettings() {
decThisYear = calendar.getTimeInMillis();

calendar.setTimeInMillis(today);
calendar.roll(Calendar.YEAR, 1);
calendar.add(Calendar.YEAR, 1);
oneYearForward = calendar.getTimeInMillis();

todayPair = new Pair<>(today, today);
Expand Down

0 comments on commit 305e19d

Please sign in to comment.