Open proteusvacuum opened 5 months ago
Thanks WhatsApp for using such an amazing export format!
This https://github.com/Pustur/whatsapp-chat-parser/blob/master/src/parser.ts#L11 seems like it could be a good starting point for examples of how this is handled elsewhere.
When I download a chat from WhatsApp following these instructions the chat is formatted as follows:
My phone is set to English (Canada)
Setting the phone to English (South Africa) and redownloading the file I get the following format:
Feeding these files into the WhatsApp analysis pipeline, I get the following error:
I think we have to update both the regex: https://github.com/dimagi/open-chat-studio/blob/f118a62d739f4d3aa7253374c1db259b4798f001/apps/analysis/steps/parsers.py#L38 and the time formatter: https://github.com/dimagi/open-chat-studio/blob/f118a62d739f4d3aa7253374c1db259b4798f001/apps/analysis/steps/parsers.py#L57