Nimit Parekh
Nimit Parekh

Reputation: 16864

UIDatePicker doesn't display appropriate time

I have an application that uses UIDatePicker & I am facing problem as described below.

Problem
On iOS 5.0, It works perfectly as I need. It is being displayed as follows.

iOS 5.0 Sample DatePicker

Same Application, behaves differently for iOS 4.3 simulator. Added the screen-shot as follows.

enter image description here

I am facing this situation while testing on different versions of simulator ( ** iOS 4.3 & iOS 5.0 **). I do have device having iOS 5.0 only. Does anyone have any idea regarding this problem ?

Upvotes: 0

Views: 243

Answers (2)

ThomasW
ThomasW

Reputation: 17307

It appears that this is a feature of iOS 5. There is a related post where they want the opposite of what you're trying to do, but I believe the same sort of solution should work for you: Remove the "Today" entry from UIDatePicker

Upvotes: 1

Ilanchezhian
Ilanchezhian

Reputation: 17478

This might well due to the Time Zone set in the device. Even if you have set same time, but with different timezone, you would get like this.

Upvotes: 1

Related Questions