Widget freezes when setting time & date manual

I created my own widget on an AOSP pie ROM (crdroid) and I use Nova launcher. Whenever I set time and date to manual and change it the widget freezes until I restart the app. In the attached picture time showed on top left is different from the one showed in the widget.