File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,19 @@ DateTime toEndOfDay(DateTime dt) {
10
10
11
11
class RecipePlan extends Model {
12
12
final Recipe recipe;
13
- final DateTime ? cooking_date; // privat gemacht
13
+ final DateTime ? cooking_date;
14
14
final int ? yields;
15
15
16
16
RecipePlan ({
17
17
required this .recipe,
18
- this .cooking_date, // Parameter umbenennen
18
+ this .cooking_date,
19
19
this .yields,
20
20
});
21
21
22
22
factory RecipePlan .fromJson (Map <String , dynamic > map) {
23
23
return RecipePlan (
24
24
recipe: Recipe .fromJson (map['recipe' ]),
25
- cooking_date: DateTime .fromMillisecondsSinceEpoch (map["cooking_date" ], isUtc: false ),
25
+ cooking_date: DateTime .fromMillisecondsSinceEpoch (map["cooking_date" ], isUtc: true ),
26
26
yields: map['yields' ],
27
27
);
28
28
}
You can’t perform that action at this time.
0 commit comments