12.02.2021, 14:07
(12.02.2021, 14:00)admin Wrote: The script looks correct. What do you get in logs? Do you actually have alerts for the previous month in Alerts tab?
You can try getting alerts for the current month by adding date.month = date.month + 1 after date = os.date('*t') (line 21)
Also don't use %x date format because it is MONTH/DAY/YEAR, use %F which is YEAR-MONTH-DAY.
tried as recommended changed to% F, the result does not change, could it be an international setting problem?
If I look at the alerts they are merited in the format 12.02.2021 hh:mms