Mqtt before smart period fires at wrong time

Detailed description of the problem:

The mqtt event before_smart_period, fires at the same time as the alarm start time. This should be 45min before the smart period starts.

Steps to reproduce:

Set alarm, set smart period to 5min. Read mqtt logs.

Version of Sleep as Android:
20220222