Showing new date on Widget at Midnight

Hi,
I am in the process of developing an add-on widget for one of my apps that must show a new date at midnight local time.

I've tried using the default widget code, and changing the line to:


Could someone give me a "hint" on what to do?

Thanks,
Dan


WidgetKit will automatically refresh your widget when the day changes. So if you're showing the current date in your UI, it should happen automatically. If you don't see that behavior, please file a Feedback Assistant report with the details of what your widget is doing.
Done.

Feedback #: FB7881669

Thanks.
@pdm I'm not seeing that behavior on iOS 14. I'm changing the date to 11:59 PM, and attach the debugger to my widgets, but their views, and timeline aren't refresh automatically. My timeline is supposed to refresh .after(midnight) which isn't happening.
Showing new date on Widget at Midnight
 
 
Q