Skip to content

Conversation

@obastemur
Copy link
Collaborator

This PR may require the presence of #915

void ScriptContext::UpdateTimeZoneInfo()
{
GetTimeZoneInformation(&timeZoneInfo);
#if !defined(__cplusplus_winrt) && defined(_WIN32)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why adding !defined(__cplusplus_winrt)? It worked before without it.

Linux has tzset(). Does it work here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Saw the important message from https://msdn.microsoft.com/en-us/library/90s5c885.aspx

AFAIK using tzset on *nix may depend on the choice of localization.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Saw the important message from https://msdn.microsoft.com/en-us/library/90s5c885.aspx

I'm unfamiliar with it. It might be possible that chakra.dll can use this API? Maybe better avoid side-fixing it here and file an issue to investigate it separately?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unfamiliar with it. It might be possible that chakra.dll can use this API? Maybe better avoid side-fixing it here and file an issue to investigate it separately?

Okay, added a comment there instead.

@jianchun
Copy link

jianchun commented May 5, 2016

LGTM, thanks!

@obastemur
Copy link
Collaborator Author

Updated this PR. Since we haven't merged #915 yet, combination was enabling some windows only features. After both PRs merged, we should have a functioning DateTime support.

@jianchun
Copy link

jianchun commented May 6, 2016

@dotnet-bot test Ubuntu ubuntu_linux_debug please
@dotnet-bot test Ubuntu ubuntu_linux_release please

@obastemur
Copy link
Collaborator Author

This was cherry-picked into #915

@obastemur obastemur closed this May 6, 2016
@obastemur obastemur deleted the date_tos branch June 7, 2016 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants