question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Date/Time column has been dropped from CSV Report

See original GitHub issue

In an earlier build, there was a date/time in the last column of each CSV row indicating the timestamp when the entry was created. A CSV heading for this field exists in the latest build but the field is not present. The problem appears to simply be the format string.

https://github.com/logpresso/CVE-2021-44228-Scanner/blob/8aaa0e55538bc5fd6cec6242be3dc56da52e2858/src/main/java/com/logpresso/scanner/ReportEntry.java#L83-L84

There are only 7 ‘%s’ format specifiers while there are 8 fields. The ‘%n’ specifier simply expands to the platform-appropriate line ending, so doesn’t count. The issue can be fixed by inserting ,\"%s\" in front of the %n at the end of the format string.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Robert-J-Slovercommented, Dec 21, 2021

I can confirm that this does fix the issue. Thank you for the quick fix.

0reactions
xeraphcommented, Dec 21, 2021

@Robert-J-Slover Thank you for test report!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Datetime field format issue while export in CSV
I'm trying to export CSV file from SQL query, Datetime column has some formatting issue while viewing data in Excel.
Read more >
Python giving me datetime Value Error from CSV
The only procedure that seems to reliably prevent this behavior is to set a specific date/time format for the respective column, e.g. DD.MM.YYYY ......
Read more >
Solved: Errors when changing format of datetime column
I am using a CSV file as a data source in Power BI Desktop. One of the columns in the CSV file is...
Read more >
Formatting Dates for CSV Imports - Administration - Echo360
The CSV file will have the proper date format. Just don't open the CSV file in Excel and expect the dates to be...
Read more >
Error on datetime column during CSV Import : DbVis Software
This topic is migrated from our old forums. The original author name has been removed] Hi, I am using 'Import CSV file' feature...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found