[Mono-bugs] [Bug 612499] DateTime converts to UTC in iPad (OS 3.2) but not iPhone (3.0)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jun 14 17:38:37 EDT 2010



--- Comment #2 from Neal Culiner <neal at nc-software.com> 2010-06-14 21:38:36 UTC ---
Yes, sorry, I haven't figured out Bugzilla to find the cases to follow-up with

The issue is/was that a UIDatePicker.Date is a NSDate data type and when you
return that value like Miguel is doing in MonoTouch.Dialog, i.e. set it to a
DateTime variable it is converted to UTC.  I don't know if this is correct as a
UIDatePicker is supposed to show device local time, so if you take code like
that below, should it be local or UTC?

DateTime dt = UIDatePicker.Date

dt ends up being UTC

What I ended up doing after finding code to convert NSDate to DateTime was
convert UIDatePicket.Date to DateTime then calling .ToLocalTime() on it.

Up to you if this bug needs attention or if you want to close it.


Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list