File tree Expand file tree Collapse file tree
src/MiScaleExporter.MAUI/ViewModels Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ public async Task LoadPreferencesAsync()
4646
4747 this . MuscleMassAsPercentage = Preferences . Get ( PreferencesKeys . MuscleMassAsPercentage , false ) ;
4848 this . MuscleMassAsKg = ! Preferences . Get ( PreferencesKeys . MuscleMassAsPercentage , false ) ;
49+
50+ this . Date = DateTime . Now ;
51+ this . Time = DateTime . Now . TimeOfDay ;
4952 }
5053 private bool ValidateSave ( )
5154 {
@@ -162,7 +165,7 @@ private BodyComposition PrepareRequest()
162165 BMR = DoubleValueParser . ParseValueFromUsersCulture ( _bmr ) ?? 0 ,
163166 WaterPercentage = DoubleValueParser . ParseValueFromUsersCulture ( _waterPercentage ) ?? 0 ,
164167 MFACode = _mfaCode ,
165- ExternalApiClientId = _externalApiClientId ,
168+ ExternalApiClientId = _externalApiClientId
166169 } ;
167170
168171 if ( Preferences . Get ( PreferencesKeys . MuscleMassAsPercentage , false )
@@ -190,6 +193,8 @@ public void LoadBodyComposition()
190193 Fat = App . BodyComposition . Fat . ToString ( ) ;
191194 WaterPercentage = App . BodyComposition . WaterPercentage . ToString ( ) ;
192195 BodyType = App . BodyComposition . BodyType ;
196+ //Date = App.BodyComposition.Date;
197+ //Time = App.BodyComposition.Date.TimeOfDay;
193198 IsAutomaticCalculation = true ;
194199 }
195200
You can’t perform that action at this time.
0 commit comments