Unrecognized date format
See original GitHub issueHi! I just did a whatsapp export and put it into chat-miner, but it seems my datetime format is not supported. I was able to get it working by modifying the code a bit, but not in a way that would be good for a PR, hence this issue instead.
My exported format is like this:
26-04-2022 12:11 - [name]: [message]
So it’s day-month-year hour:minute.
Not only does chat-minder currently not expect a -
as date separator, it also gets confused later on when it’s splitting datetime and message content based on -
(splitting on -
with spaces around it works better).
Issue Analytics
- State:
- Created 10 months ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
ORA-01821: date format not recognized error for ISO 8601 ...
You have two issues: TO_DATE doesn't recognise any time zone components or fractional seconds, you'll have to convert it to timestamp with ...
Read more >Date value Error ORA-01821: date format not recognized
Hi Team, will executing the below query i am getting ORA-01821: date format not recognized. SELECT DISTINCT to_date(TO_CHAR(csactivated ...
Read more >Oracle / PLSQL: ORA-01821 Error Message - TechOnTheNet
You tried to enter a date value, but you used a date format that is not supported by Oracle. Resolution. The option(s) to...
Read more >Converting an Unsupported Date Format - Microsoft Excel Tips
This formula assumes that the foreign date/time format is in cell A1. Simply format the result of the formula using one of Excel's...
Read more >8 Ways To Fix Excel Not Recognizing Date Format
This blog contains detail information on why date format not changing in Excel. also try 8 different fixes to solve Excel not recognizing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure thing, I’ll make sure to integrate my format in the following days!
@Landcross @alfonso46674 @miguelgazela Thank you guys for raising this! The format of the date in the logs indeed differ depending on different factors. I haven’t seen your formats yet, which is why the regex does not properly parse them. The fix should be quite easy: Simply adjust the regex string DATEREG to incorporate your formats. This is a great tool for validating regular expressions. Feel free to drop a PR to contribute to this project!