mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 05:20:06 +00:00 
			
		
		
		
	Display clock format defined in settings on map
This commit is contained in:
		
							parent
							
								
									a7cb459e20
								
							
						
					
					
						commit
						5fb9dc6a5f
					
				
					 4 changed files with 55 additions and 9 deletions
				
			
		|  | @ -1,4 +1,5 @@ | |||
| #include <scwx/qt/view/level3_product_view.hpp> | ||||
| #include <scwx/qt/settings/general_settings.hpp> | ||||
| #include <scwx/common/characters.hpp> | ||||
| #include <scwx/common/constants.hpp> | ||||
| #include <scwx/util/logger.hpp> | ||||
|  | @ -176,6 +177,9 @@ Level3ProductView::GetDescriptionFields() const | |||
| 
 | ||||
|    if (p->graphicMessage_ != nullptr) | ||||
|    { | ||||
|       util::ClockFormat clockFormat = util::GetClockFormat( | ||||
|          settings::GeneralSettings::Instance().clock_format().GetValue()); | ||||
| 
 | ||||
|       const scwx::util::time_zone* currentZone; | ||||
| 
 | ||||
| #if defined(_MSC_VER) | ||||
|  | @ -197,10 +201,12 @@ Level3ProductView::GetDescriptionFields() const | |||
| 
 | ||||
|          description.emplace_back( | ||||
|             "Volume Time", | ||||
|             scwx::util::TimeString(volumeTime, currentZone, false)); | ||||
|             scwx::util::TimeString( | ||||
|                volumeTime, clockFormat, currentZone, false)); | ||||
|          description.emplace_back( | ||||
|             "Product Time", | ||||
|             scwx::util::TimeString(productTime, currentZone, false)); | ||||
|             scwx::util::TimeString( | ||||
|                productTime, clockFormat, currentZone, false)); | ||||
| 
 | ||||
|          description.emplace_back( | ||||
|             "Sequence Number", | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat