Bug in system Calendar app when opening it on specific date

I'm using an URL Scheme like this:


let interval = date.timeIntervalSinceReferenceDate
let scheme = URL(string: "calshow:\(interval)")
UIApplication.shared.open(url, options: [:], completionHandler: nil)



This should open the system Calendar app on the determined date. However, when I first open the app, it starts on the correct date and then automatically changes back to the current date. Then, the next time I call this url it starts correctly and stays on the selected date.


It looks like a bug, does anyone have a solution?