DocumentServer icon indicating copy to clipboard operation
DocumentServer copied to clipboard

Exporting spreadsheet to CSV change the format of the dates

Open jpberdejo opened this issue 2 years ago • 6 comments

This issue is unique.

  • [X] I have used the search tool and did not find an issue describing my bug.

Operating System

Windows 10 / 8.1 / 7

Version information

8.0.1

Expected Behavior

When saving a spreadsheet into CSV file, expect the dates keep the same actual format.

Actual Behavior

When saving a spreadsheet into CSV file, the dates formatted as dd/mm/yyyy are changed to dd.mm.yyyy what is not valid when import the file in another app.

Reproduction Steps

  1. Open or create a spreadsheet file with dates formatted as dd/mm/yyyy.
  2. Save as CSV file.
  3. Open CSV saved file in any text editor.
  4. Check the dates.

Additional information

No response

jpberdejo avatar Feb 29 '24 20:02 jpberdejo

Hello! @jpberdejo I can confirm - this is bug, issue #55431. Thanks for your report!

VladimirProkofiev52 avatar Mar 01 '24 15:03 VladimirProkofiev52

The issue is actual in DocumentServer.

Rita-Bubnova avatar Mar 02 '24 16:03 Rita-Bubnova

I have the reverse problem! I am trying to IMPORT a comma delimited csv with correct dates viewed in an ascii editor but in the format yyyy-mm-dd. Upon importing as comma delimited, UTF-8 file, the dates are really strange.

"Account Name","Processed Date","Description","Check Number","Credit or Debit","Amount" "checking",2023-12-29,"desc esth rt srtnsgf1",,"Debit",9.99 "checking",2023-12-26,"desc esth rt srtnsgf2",,"Credit",1.99 "checking",2023-12-21,"desc esth rt srtnsgf3",,"Credit",1.99

When I open it in OnlyOffice I get this:

Account Name Processed Date Description Check Number Credit or Debit Amount checking 26.03.7369 desc esth rt srtnsgf1 Debit 9.99 checking 30.05.7368 desc esth rt srtnsgf2 Credit 1.99 checking 16.01.7367 desc esth rt srtnsgf3 Debit 1.99

Any suggestions on how to correct this problem?

THANKS!!

--Update 30 minutes later... I got a workaround. The bank can send data as .csv, .txt, and .ofx. I downloaded the .txt file and opened it in OnlyOffice and then copied it and pasted it into new spreadsheet and it formatted the date and numbers correctly!!!

ZachreyNM avatar Mar 20 '24 21:03 ZachreyNM

The issue is actual in DocumentServer.

No, it is not in the server. I am getting this issue in the MacOS app when opening a CSV file.

bigbeka avatar Apr 24 '24 12:04 bigbeka

Hello! @ZachreyNM, @bigbeka Instead of just opening the CSV/TXT file, try to extract the data from it. To do this, open the spreadsheet editor. Go to the Data tab and use the 'Get data' function.

VladimirProkofiev52 avatar Apr 24 '24 12:04 VladimirProkofiev52

Hello! @ZachreyNM, @bigbeka Instead of just opening the CSV/TXT file, try to extract the data from it. To do this, open the spreadsheet editor. Go to the Data tab and use the 'Get data' function.

Other spreadsheet editors don't do that when opening a CSV, plus when importing data from CSV with "Get data" function, it imports the Quotations, see screenshot. I would say opening a CSV is fairly common use case as it is opening XLSX files instead of "Get data" every time.

Screenshot 2024-04-24 at 14 50 51 Screenshot 2024-04-24 at 14 51 02

bigbeka avatar Apr 24 '24 12:04 bigbeka