mirror of
				https://github.com/ryujinx-mirror/ryujinx.git
				synced 2025-11-04 08:18:58 -06:00 
			
		
		
		
	Fix system dateTime loading in avalonia LoadCurrentConfiguration (#6676)
* Fix system dateTime loading in avalonia LoadCurrentConfiguration * Rename local var to not use upper camel case
This commit is contained in:
		@@ -412,10 +412,11 @@ namespace Ryujinx.Ava.UI.ViewModels
 | 
			
		||||
            Language = (int)config.System.Language.Value;
 | 
			
		||||
            TimeZone = config.System.TimeZone;
 | 
			
		||||
 | 
			
		||||
            DateTime currentDateTime = DateTime.Now;
 | 
			
		||||
 | 
			
		||||
            DateTime currentHostDateTime = DateTime.Now;
 | 
			
		||||
            TimeSpan systemDateTimeOffset = TimeSpan.FromSeconds(config.System.SystemTimeOffset);
 | 
			
		||||
            DateTime currentDateTime = currentHostDateTime.Add(systemDateTimeOffset);
 | 
			
		||||
            CurrentDate = currentDateTime.Date;
 | 
			
		||||
            CurrentTime = currentDateTime.TimeOfDay.Add(TimeSpan.FromSeconds(config.System.SystemTimeOffset));
 | 
			
		||||
            CurrentTime = currentDateTime.TimeOfDay;
 | 
			
		||||
 | 
			
		||||
            EnableVsync = config.Graphics.EnableVsync;
 | 
			
		||||
            EnableFsIntegrityChecks = config.System.EnableFsIntegrityChecks;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user