Closed ohoroyoi closed 5 years ago
I'm not sure how the data is retrieved from MySQL and passed to json2csv but it seems to me like it's a date. In Javascript there is no separate time and date. so the date is serialized in the standard JSON format.
You could preprocess each row to stringify each row in whatever format you want.
Or use the fields
option for that.
Does this help?
yes thanks! it was about mysql connection options.
json2csv version 4.3.0
here is my mysql. (mysql Ver 15.1 Distrib 5.5.59-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 )
and here is my downloaded csv file using json2csv. I'd like it returned only to the year and date. But it returns timezone by default.