mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 19:19:03 +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) { | ||||
|             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.
 | ||||
|         let startTime = null; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran