twostraws / ControlRoom

A macOS app to control the Xcode Simulator.
MIT License
5.75k stars 306 forks source link

Setting date override doesn't seem to work #123

Closed Svantulden closed 3 years ago

Svantulden commented 3 years ago

Loving the handy features this app already brings me as an iOS developer, like the easy way to edit user defaults 👏

We use time/date-related code in our app and thought Control Room could do something we have wanted for years, namely setting a custom date for the simulator. This is an annoying limitation, that causes some of our developers to mess up Git commits, due to their MacOS time being in the future, for example 🤡

Setting a custom date in Control Room doesn't seem to work though. Setting a custom time works perfectly, but a custom month/day seems to not be applied. Tested in our app and when going to the calendar app in the simulator.

Is that a known limitation or maybe a bug?

EDIT: Ah, I've now looked at the code for that element and it seems I misunderstood that it would also set the date due to the DatePicker being used. So it's meant for only setting the time.