[Pharo] Personal fitness tracker web app.
Update deprecated method for date retrieval from string.
src/MyFitnessTracker/MFTWeight.class.st
@@ -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
@@ -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
]