[Mono-bugs] [Bug 639599] DateTime.Now returns GMT not local time

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 14 12:53:37 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=639599

https://bugzilla.novell.com/show_bug.cgi?id=639599#c8


Jonathan Pryor <jpryor at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jpryor at novell.com

--- Comment #8 from Jonathan Pryor <jpryor at novell.com> 2011-01-14 17:53:36 UTC ---
I'm not entirely sure what MonoDroid can do about device-dependent behavior. 
DateTime.Now is retrieved from gettimeofday(2), and the timezone is detected
from a bit of logic based on mktime(3), localtime(3), strftime(3), etc. (see
mono/metadata/icall.c:ves_icall_System_CurrentSystemTimeZone_GetTimeZoneData
for details).

The fact that it works in some places and fails in others suggests that some
vendors are screwing up libc/bionic with custom changes, and I can't really see
a way to easily work around this.

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


More information about the mono-bugs mailing list