Modify time of day of Notification

I have created separate E-Mail and SMS notifications for when a Doc Type is set to expire within: 45 days, 30 days, 15 days, etc… .
The notifications do go as expected.
However the the time (10:00) of expiration is not honored. Notification sends at 12:00am (non-business hours).

How can I modify the time of day that notification is being sent?
I want it to send at 10:00 not 12:00.

I believe schedulers run at midnight, hence the notification being triggered at night. If you need to change the time the scheduler runs, not sure if this can be done by modifying the config files somewhere…

add a time field in the document and set itst timer then add the notifcation to field change and add a codition that if doc.time== “10:00” it will send notification at 10

You can change from hook file of the app

  • Find scheduler event and app
  • Then go to hook file of the app
  • Change event to cron and set time
scheduler_events = {
"cron": {
    "0 9 * * *": [
        "frappe_whatsapp.frappe_whatsapp.doctype.whatsapp_notification.whatsapp_notification.trigger_notifications"
    ]
}

you can set time according to need