forked from sheetjs/sheetjs
		
	Fix basedate calculation
Co-authored-by: Philippe Rivière <fil@rezo.net>
This commit is contained in:
		
							parent
							
								
									64e8998e59
								
							
						
					
					
						commit
						db81ca6594
					
				
							
								
								
									
										4
									
								
								xlsx.js
									
									
									
										generated
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										4
									
								
								xlsx.js
									
									
									
										generated
									
									
									
								
							| @ -3213,9 +3213,7 @@ function evert_arr(obj) { | ||||
| 	return o; | ||||
| } | ||||
| 
 | ||||
| var basedate = new Date(); // 2209161600000
 | ||||
| basedate.setUTCFullYear(1899, 11, 30); | ||||
| basedate.setUTCHours(0, 0, 0); | ||||
| var basedate = new Date(Date.UTC(1899, 11, 30, 0, 0, 0)); // 2209161600000
 | ||||
| 
 | ||||
| function datenum(v, date1904) { | ||||
| 	var epoch = v.getTime(); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user