Enable time zone for netstandard1.7 (dotnet/coreclr#8074)
authorTarek Mahmoud Sayed <tarekms@microsoft.com>
Fri, 11 Nov 2016 00:58:28 +0000 (16:58 -0800)
committerGitHub <noreply@github.com>
Fri, 11 Nov 2016 00:58:28 +0000 (16:58 -0800)
commitf5cc3a1f0d75e1a6fbafb48f62cb7341b42eefc6
treec637da20809f2138bf05d65c20eaec4b944f34f4
parentbbedad30d8dbfe2cf5f5397546a02bb6c7557582
Enable time zone for netstandard1.7 (dotnet/coreclr#8074)

* Expose and reimplement TimeZone class

The change is exposing the missing TimeZone APIs from corelib so can be useded in netstandard 1.7.
The change here is re-implementing CurrentTimeZone class to be simpler and also to make it work for Linux platforms. we used TimeZoneInfo class to reimplement it and also cleaned up all used internal calls as not needed anymore.

* Small delta fix

* Fix the code according to the review comments

Commit migrated from https://github.com/dotnet/coreclr/commit/d3ad5db7bf3209a5b0ea341cee19230d2ba0fef5
src/coreclr/src/classlibnative/inc/nlsinfo.h
src/coreclr/src/classlibnative/nls/nlsinfo.cpp
src/coreclr/src/mscorlib/model.xml
src/coreclr/src/mscorlib/src/System/CurrentTimeZone.cs
src/coreclr/src/mscorlib/src/System/TimeZoneInfo.cs
src/coreclr/src/vm/ecalllist.h