Thread 1: "time interval must be greater than 0" if notification schedule was in the past

Viewed 19

I have the following code: enter image description here

When I press the button before the specified time (notidhuhr which updates everyday) notifications work perfectly, but if I press it after the app hangs and crashes giving me the above error. How to fix?

0 Answers
Related