mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 17:00:05 +00:00 
			
		
		
		
	Update most instances of current time to use a time offset
This commit is contained in:
		
							parent
							
								
									e0a4dee72b
								
							
						
					
					
						commit
						bd27d0e562
					
				
					 19 changed files with 48 additions and 38 deletions
				
			
		|  | @ -352,7 +352,7 @@ std::pair<size_t, size_t> AwsNexradDataProvider::Refresh() | |||
| 
 | ||||
|    logger_->debug("Refresh()"); | ||||
| 
 | ||||
|    auto today     = floor<days>(system_clock::now()); | ||||
|    auto today     = floor<days>(util::time::now()); | ||||
|    auto yesterday = today - days {1}; | ||||
| 
 | ||||
|    std::unique_lock lock(p->refreshMutex_); | ||||
|  | @ -388,7 +388,7 @@ void AwsNexradDataProvider::Impl::PruneObjects() | |||
| { | ||||
|    using namespace std::chrono; | ||||
| 
 | ||||
|    auto today     = floor<days>(system_clock::now()); | ||||
|    auto today     = floor<days>(util::time::now()); | ||||
|    auto yesterday = today - days {1}; | ||||
| 
 | ||||
|    std::unique_lock lock(objectsMutex_); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat