diff --git a/app/src/main/java/com/example/citrusclient/views/HomeFragment.java b/app/src/main/java/com/example/citrusclient/views/HomeFragment.java index 38654e6..2d37c7a 100644 --- a/app/src/main/java/com/example/citrusclient/views/HomeFragment.java +++ b/app/src/main/java/com/example/citrusclient/views/HomeFragment.java @@ -168,7 +168,7 @@ Button dateButton = view.findViewById(R.id.date_button); dateButton.setOnClickListener(v -> { - ((MainActivity) getActivity()).showFragment(new CalendarFragment()); + ((MainActivity) getActivity()).showFragment(new CalendarFragment(year, month)); }); FloatingActionButton todoAddButton = view.findViewById(R.id.todo_add_button); @@ -491,9 +491,11 @@ int month = curDate.getMonthValue(); int day = curDate.getDayOfMonth(); long yearMonth = year * 10000 + month * 100 + day; - long scheduleYearMonth = extractUpperDigits(convertTimeInteger(scheduleTime), 8); -// System.out.println(yearMonth); -// System.out.println(scheduleYearMonth); + long scheduleYearMonth = convertTimeInteger(scheduleTime) / 1000000; + +// long scheduleYearMonth = extractUpperDigits(convertTimeInteger(scheduleTime), 8); + System.out.println(yearMonth); + System.out.println(scheduleYearMonth); return scheduleTime.substring(scheduleTime.length() - 5); }