JBGruber / rwhatsapp

An R package for working with WhatsApp data 💬
94 stars 19 forks source link

Another Timeformat issue #17

Closed mhauk30 closed 4 years ago

mhauk30 commented 4 years ago

Hello, when extracting the whatsapp database and using whatsapp viewer, it seems to save the messages in the following format:

01.04.2015 - 16:00:27; ME: Und funktioniert der Toaster auch? :) Hattest du sonst heute noch Vorlesungen? 01.04.2015 - 16:06:34; he: Ne zum Glück nicht aber recht muss ich mir wirklich anhören😁

which gives the time conversion error when using format = "dd.MM.yyyy - HH:mm:ss". Is there an error from my part?

Great package and thanks for the help!

JBGruber commented 4 years ago

May I ask where you got this from (Android/iOS; language settings?).

The problem is the - character which usually separates the timestamp and user. In your case that separator is ;, which I've never seen before.

mhauk30 commented 4 years ago

Android, language setting is german. I tried replacing all the ";" with "," via notepad search and replace, but still get the same error.

JBGruber commented 4 years ago

Thanks for letting me know. That's the same setup many of my friends use, and they have no problems, so I'm a bit confused why this happens.

However, it turns out I did have a similar format before and it was easy to add this one as well. Try again, it should work now after updating via remotes::install_github("JBGruber/rwhatsapp").

JBGruber commented 4 years ago

I'm closing this as it seems to be solved.