have datepicker store unix timestamps
This commit is contained in:
		
							parent
							
								
									eb99fcef9e
								
							
						
					
					
						commit
						968263ba6a
					
				@ -890,8 +890,8 @@ export function DatePicker ({ fromName, toName, noForm, onChange, when, from, to
 | 
				
			|||||||
  useEffect(() => {
 | 
					  useEffect(() => {
 | 
				
			||||||
    setRange(whenRange(when, from, to))
 | 
					    setRange(whenRange(when, from, to))
 | 
				
			||||||
    if (!noForm) {
 | 
					    if (!noForm) {
 | 
				
			||||||
      fromHelpers.setValue(new Date(to))
 | 
					      fromHelpers.setValue(from)
 | 
				
			||||||
      toHelpers.setValue(new Date(to))
 | 
					      toHelpers.setValue(to)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }, [when, from, to])
 | 
					  }, [when, from, to])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user