mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:00:04 +00:00 
			
		
		
		
	Make animation dock follow default timezones
This commit is contained in:
		
							parent
							
								
									4306bb09ae
								
							
						
					
					
						commit
						26e24da4b5
					
				
					 8 changed files with 205 additions and 47 deletions
				
			
		|  | @ -17,6 +17,18 @@ std::chrono::sys_days SysDays(const QDate& date) | |||
|                                 julianEpoch); | ||||
| } | ||||
| 
 | ||||
| local_days LocalDays(const QDate& date) | ||||
| { | ||||
| #if (__cpp_lib_chrono >= 201907L) | ||||
|    using namespace std::chrono; | ||||
| #else | ||||
|    using namespace date; | ||||
| #endif | ||||
|    auto yearMonthDay = | ||||
|       year_month_day(year(date.year()), month(date.month()), day(date.day())); | ||||
|    return local_days(yearMonthDay); | ||||
| } | ||||
| 
 | ||||
| } // namespace util
 | ||||
| } // namespace qt
 | ||||
| } // namespace scwx
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak