mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 11:39:01 +01:00 
			
		
		
		
	fix(calendar): end date when inserting with time
This commit is contained in:
		
							parent
							
								
									55ccbfe1cc
								
							
						
					
					
						commit
						ccd9bfc1e7
					
				| @ -194,7 +194,12 @@ export default class CalendarView extends ViewMode { | |||||||
|         if (!startDate) { |         if (!startDate) { | ||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
|         const endDate = CalendarView.#formatDateToLocalISO(CalendarView.#offsetDate(e.end, -1)); |         let endDate; | ||||||
|  |         if (e.allDay) { | ||||||
|  |             endDate = CalendarView.#formatDateToLocalISO(CalendarView.#offsetDate(e.end, -1)); | ||||||
|  |         } else { | ||||||
|  |             endDate = CalendarView.#formatDateToLocalISO(e.end); | ||||||
|  |         } | ||||||
| 
 | 
 | ||||||
|         // Handle start and end time.
 |         // Handle start and end time.
 | ||||||
|         let startTime = null; |         let startTime = null; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran