add: parsing of dates as raw values (#5614)

This commit is contained in:
vjaris42 2023-02-23 18:12:18 +05:30 committed by GitHub
parent 41dbbb2e34
commit 1dabd24f08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -388,7 +388,7 @@ FilePicker.AcceptedFiles = ({ children, width, height }) => {
const processCSV = (str, delimiter = ',') => {
try {
const wb = XLSX.read(str, { type: 'string' });
const wb = XLSX.read(str, { type: 'string', raw: true });
const wsname = wb.SheetNames[0];
const ws = wb.Sheets[wsname];
const data = XLSX.utils.sheet_to_json(ws, { delimiter, defval: '' });