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.

Unrecognized date format

See original GitHub issue

Hi! 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:closed
  • Created 10 months ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
alfonso46674commented, Nov 8, 2022

Sure thing, I’ll make sure to integrate my format in the following days!

1reaction
joweichcommented, Nov 8, 2022

@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!

Read more comments on GitHub >

github_iconTop 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 >

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