diff --git a/src/parsers/whatsapp.js b/src/parsers/whatsapp.js index ba25f14..fa510b4 100644 --- a/src/parsers/whatsapp.js +++ b/src/parsers/whatsapp.js @@ -74,7 +74,7 @@ const parseTimeString = (dateStr) => { dateTimeStr = dateTimeStr.replace("a.m.", "AM").replace("p.m.", "PM") let dateTime = dateTimeStr.split(" "); const now = new Date(); - let fmtDate = [[now.getFullYear(), now.getMonth(), now.getDay()].join("/"), dateTime[1]].join(" ") + let fmtDate = [[now.getFullYear(), now.getMonth() + 1, now.getDate()].join("/"), dateTime[1]].join(" ") return new Date(fmtDate); }