mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +01:00 
			
		
		
		
	fix date parsing in local timezone, closes #845
This commit is contained in:
		
							parent
							
								
									828cce0d78
								
							
						
					
					
						commit
						6e060b87b8
					
				
							
								
								
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "trilium",
 | 
			
		||||
  "version": "0.40.0-beta",
 | 
			
		||||
  "version": "0.40.1",
 | 
			
		||||
  "lockfileVersion": 1,
 | 
			
		||||
  "requires": true,
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
 | 
			
		||||
@ -41,7 +41,7 @@ class CalendarWidget extends StandardWidget {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    init($el, activeDate) {
 | 
			
		||||
        this.activeDate = new Date(Date.parse(activeDate));
 | 
			
		||||
        this.activeDate = new Date(activeDate + "T12:00:00"); // attaching time fixes local timezone handling
 | 
			
		||||
        this.todaysDate = new Date();
 | 
			
		||||
        this.date = new Date(this.activeDate.getTime());
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user