Update deprecated method for date retrieval from string.

Commit
43d1876fd5e56f9342089bc8e8cce4129176bdb2
Author
Marius Peter <marius.peter@tutanota.com>
Author date
Committer
Marius Peter <marius.peter@tutanota.com>
Committer date
Changed files
src/MyFitnessTracker/MFTWeight.class.st
index 6b9f6ef6..8ea137a1 100644..100644
@@ -33,7 +33,7 @@
33 33 MFTWeight class >> newFromDictionary: aDictionary [
34 34
35 35 ^ self new
36 Removed: date: (Date fromString: (aDictionary at: 'date'));
36 Added: date: (Date readFrom: (aDictionary at: 'date') pattern: 'yyyy-mm-dd');
37 37 value: (aDictionary at: 'value');
38 38 yourself
39 39 ]
src/MyFitnessTracker/MFTWorkout.class.st
index c0617606..c7d29c62 100644..100644
@@ -20,7 +20,7 @@
20 20 ^ self new
21 21 id: (aDictionary at: 'id');
22 22 userId: (aDictionary at: 'user_id');
23 Removed: date: (Date fromString: (aDictionary at: 'date'));
23 Added: date: (Date readFrom: (aDictionary at: 'date') pattern: 'yyyy-mm-dd');
24 24 primaryMuscleGroupId: (aDictionary at: 'primary_muscle_group_id');
25 25 yourself
26 26 ]