-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSV upload: date format, semicolons are locale-dependent in Windows #77
Comments
This is what I've found when working with the CSV upload:
Dates: I looked on Stack Overflow for some ideas on resolving this, and the most effective way to make sure dates stay in the YYYY-MM-DD format when converted from XLS to CSV seems to be to change the date settings on your computer/laptop, as Rolf said. Would AidStream be able to use something similar to the fix you can apply on CSV Convertor, where it converts the dates to the right format on upload? I don't think we can expect users to mess around trying to change the dates in the CSV file, they are going to get frustrated. |
Maybe it makes sense to experiment with csvkit? Basically: (Note: you can also convert the older format .XLS files, but then dates will be exported as numbers ("days since 1900-1-1") (see also this bug at cvskit) |
You can also use separate rows for additional information for each project (see AidStream guidance page at https://github.com/younginnovations/aidstream/wiki/How-to-use-the-mass-import-option-for-uploading-activities so maybe this should be made clearer? |
Currently, an upload of a CSV file where the separator is a semicolon (
;
) rather than a comma (,
) generates an error that the header row is not the same as the template.Related: dates are required to be in Y-m-d format.
The problem is that when a user edits the template file in Excel under Windows, he/she has no apparent control over these two things: when you enter a date, Excel will recognise it as a date and determine its own format. When you export to CSV, you have no options for the separator.
The only way to change these seems to be to adapt the overall internationalisation settings of Windows: that's nearly impossible to discover or do for an average user.
The text was updated successfully, but these errors were encountered: