mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 11:00:06 +00:00 
			
		
		
		
	Add a grace period for expiring events in the past
This commit is contained in:
		
							parent
							
								
									bc21d7bf02
								
							
						
					
					
						commit
						6d165068e9
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -156,8 +156,9 @@ TextProductMessage::segment_event_begin(std::size_t s) const | |||
|                hours {beginHour} + minutes {beginMinute}; | ||||
| 
 | ||||
|             // If the begin date is after the end date, assume the start time
 | ||||
|             // was the previous month
 | ||||
|             if (eventBegin > eventEnd) | ||||
|             // was the previous month (give a 1 day grace period for expiring
 | ||||
|             // events in the past)
 | ||||
|             if (eventBegin > eventEnd + 24h) | ||||
|             { | ||||
|                // If the current end month is January
 | ||||
|                if (endDate.month() == January) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat