rizwansoaib / whatsapp-monitor

Free Whatsapp Online Tracker šŸ“² | WhatsApp last seen tracker | [Get Notification šŸ”” and history šŸ“œ of Online WhatsApp Contact]
https://wpmonitor.online
GNU General Public License v3.0
1.03k stars 199 forks source link

Problem with log_filename current time #135

Closed clecthiago closed 10 months ago

clecthiago commented 2 years ago

Describe the bug After update to 2.7 I'm having problem with my log_filename.

After 21h (for me) is created a log_filename in a wrong way. Is cretead a new_name with the tomorrow date.

To Reproduce Steps to reproduce the behavior:

  1. Start monitoring.
  2. Wait to next autosaved log after 21 o'clock
  3. Read the log_file, and see a current logfile_name (with tomorrow's date) with a new registry with a today's date.

Screenshots Below the log created at 2021-12-03 after 21:00 (but filled with regristries from 02-December) image

If I want to search for things happend on 02 December, I need to go to another file (created one day ago). Below the log created at 2021-12-02 before (yet) 21:00 (filled with OK regristries)). If you realize here, the registries in both log files are the same (and that is ok). the file_name is a little bit different, because the "seconds" in the file_name. image

Below the log created at 2021-12-03 after 21:00 (but filled with regristries from 01-December) If I want to search for things happened after 21:00 at 02 December, the next log shows me things from December first. image

Desktop (please complete the following information):

Additional context

idk if I was clear here, but the problem occurs after 21:00 in auto saved in 10min (my default usage for guarantee ). Maybe is related with my timezone, idk.

I'm writing this (open the bug issue ) at December, 5. My recent created logfile now its named by whatsapp-monitor_2021-12-06&&22_41_12.csv. It will happens after 23:59 (tomorrow): A new logfile will be created with a name "_standardprefix-06&&00_01_12.csv. About the regristries: Everything will be fine after that, until "_standardprefix-06&&20_51_12.csv. About the file name log: when order by name the file will be created after "_standardprefix-05&&23_51_12.csv. and will be more dificult to find things happened.

clecthiago commented 2 years ago

Maybe someone realize this issue with another time o'clock. For me happens on 21:00, and i'm on GMT -3