I have the next problem: my app gets a false notification about time change.
// add observer and notification
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleSystemTimeChangeNotification:) name:NSSystemClockDidChangeNotification object:nil];
// handle system notification about time change
- (void)handleSystemTimeChangeNotification:(NSNotification*)notification
{
CLLogInfo(@"The time change detected");
}
It works without any problem on previous OS: Big Sur, Catalina. Only working with Monterey, Ventura I have these troubles.
Please, give me some recommendations about what I should do. How can I detect time change on macOS (Ventura, Monterey) ?