[Mono-bugs] [Bug 639599] DateTime.Now returns GMT not local time
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Apr 4 14:04:26 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=639599
https://bugzilla.novell.com/show_bug.cgi?id=639599#c9
--- Comment #9 from Jonathan Pryor <jpryor at novell.com> 2011-04-04 18:04:25 UTC ---
It looks like this might impact the Nook Color Official Development Device
running Android 2.1:
http://lists.ximian.com/mailman/private/monodroid/2011-March/004038.html
> This workaround worked for me:
>
> DateTime nowutc = DateTime.UtcNow;
> DateTime now = TimeZoneInfo.ConvertTime(nowutc, TimeZoneInfo.Utc,
> TimeZoneInfo.FindSystemTimeZoneById(TimeZoneInfo.Local.Id));
>
> Nikolai
--
Configure bugmail: https://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