From 0e49b9cd32a808942328a72f39a4c0120cbbc8c3 Mon Sep 17 00:00:00 2001 From: Crondung <1922635@stud.hs-mannheim.de> Date: Thu, 2 Mar 2023 19:43:05 +0100 Subject: [PATCH] make date field of workout json encodable --- lib/models/workout.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/workout.dart b/lib/models/workout.dart index 67dd828..671dfc8 100644 --- a/lib/models/workout.dart +++ b/lib/models/workout.dart @@ -28,7 +28,7 @@ class Workout implements DatabaseRecord { return { 'motivationBefore': _motivationBefore, 'motivationAfter': _motivationAfter, - 'workoutDate': _workoutDate, + 'workoutDate': _workoutDate.toIso8601String(), }; } }