mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 21:20:04 +00:00 
			
		
		
		
	Don't query for NEXRAD data at the epoch
This commit is contained in:
		
							parent
							
								
									0f215a9469
								
							
						
					
					
						commit
						8d1fcfec7f
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		|  | @ -1049,6 +1049,13 @@ void RadarProductManagerImpl::PopulateProductTimes( | ||||||
|    std::chrono::system_clock::time_point time) |    std::chrono::system_clock::time_point time) | ||||||
| { | { | ||||||
|    const auto today = std::chrono::floor<std::chrono::days>(time); |    const auto today = std::chrono::floor<std::chrono::days>(time); | ||||||
|  | 
 | ||||||
|  |    // Don't query for the epoch
 | ||||||
|  |    if (today == std::chrono::system_clock::time_point {}) | ||||||
|  |    { | ||||||
|  |       return; | ||||||
|  |    } | ||||||
|  | 
 | ||||||
|    const auto yesterday = today - std::chrono::days {1}; |    const auto yesterday = today - std::chrono::days {1}; | ||||||
|    const auto tomorrow  = today + std::chrono::days {1}; |    const auto tomorrow  = today + std::chrono::days {1}; | ||||||
|    const auto dates     = {yesterday, today, tomorrow}; |    const auto dates     = {yesterday, today, tomorrow}; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat