mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Save local date
This hopefully fixes an error where no logs would be shown in the calendar when running the app on a real device
This commit is contained in:
@@ -63,9 +63,11 @@ class Setting {
|
||||
@JsonKey(ignore: true)
|
||||
late WeightUnit weightUnitObj;
|
||||
|
||||
/// Personal notes about this setting. Currently not used
|
||||
@JsonKey(required: true)
|
||||
late String comment = '';
|
||||
|
||||
/// Reps in Reserve
|
||||
@JsonKey(required: true)
|
||||
String? rir = '';
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ class _WorkoutLogCalendarState extends State<WorkoutLogCalendar> {
|
||||
void loadEvents() {
|
||||
for (var date in widget._workoutPlan.logData.keys) {
|
||||
var entry = widget._workoutPlan.logData[date]!;
|
||||
_events[date] = [WorkoutLogEvent(date, entry['session'], entry['exercises'])];
|
||||
_events[date.toLocal()] = [WorkoutLogEvent(date, entry['session'], entry['exercises'])];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user