table_calendar
table_calendar copied to clipboard
Try to adding some event to firebase
Describe the bug When I try to get the date for save any event in flutter firebase if I pick day 5 Jan 2023 when I save in firebase the day saved is 4 Jan 2023 I try to use toLocal, and toUtc, and issue always persist
TableCalendar(
focusedDay: _value,
rangeStartDay: normalizeDate(_value.toUtc()),
firstDay: DateTime(2022),
lastDay: DateTime.now(),
onDaySelected: (selectedDay, focusedDay) {
if (selectedDay == selectedDay) {
setState(() => _value = selectedDay);
}
Navigator.pop(context);
},
);