[Mono-bugs] [Bug 621366] System.DateTime converts NSDate to UTC
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Jul 15 21:19:15 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=621366
http://bugzilla.novell.com/show_bug.cgi?id=621366#c4
--- Comment #4 from Neal Culiner <neal at nc-software.com> 2010-07-16 01:19:13 UTC ---
Hello,
I put in test code to verify the issue. I created a method:
private void ShowTimes()
{
System.Text.StringBuilder builder = new
System.Text.StringBuilder();
builder.AppendLine(string.Format("Local Time is:
{0}",DateTime.Now));
builder.AppendLine(string.Format("GMT Time is: {0}",
DateTime.UtcNow));
Alerts.ShowAlert("Time Test",builder.ToString());
builder = null;
}
Run an app and call ShowTimes which will display local and GMT. Tap the Home
Button to suspend the app. Go to the iPhone settings/general/date & time and
turn off the automatic timezone feature and change the timezone such as to Los
Angeles.
Run the app again and call ShowTimes again. notice how the original timezone
is retained in the System.DateTime call?
How do I resolve this?
Thank you.
--
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