forked from eatvio/eatvio_app
feat(chats,diary): added logic for chosen diet portions and added banner to finish plan to chats
This commit is contained in:
@@ -37,8 +37,9 @@ class DiaryModel with _$DiaryModel {
|
||||
}
|
||||
|
||||
DateTime parseUnformattedDate(String date) {
|
||||
final dateChunks = date.split('/').map(int.parse).toList();
|
||||
return DateTime(dateChunks.last, dateChunks.first, dateChunks[1]);
|
||||
final dateChunks = date.split('-').map(int.parse).toList();
|
||||
|
||||
return DateTime(dateChunks.first, dateChunks[1], dateChunks.last);
|
||||
}
|
||||
|
||||
enum DiaryStateEnum {
|
||||
|
||||
Reference in New Issue
Block a user