From 9a13cfb9f1ff713631f3d3520b9854ab9f748fba Mon Sep 17 00:00:00 2001 From: Crondung <1922635@stud.hs-mannheim.de> Date: Sat, 25 Feb 2023 15:30:04 +0100 Subject: [PATCH] date to string --- lib/models/mood.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/models/mood.dart b/lib/models/mood.dart index 4914791..5d71e5b 100644 --- a/lib/models/mood.dart +++ b/lib/models/mood.dart @@ -15,9 +15,9 @@ class Mood implements DatabaseRecord { @override Map toMap() { return { - 'moodValue': _moodValue, + 'value': _moodValue, 'comment': _comment, - 'date': _date, + 'date': _date.toIso8601String(), }; } }