-
Notifications
You must be signed in to change notification settings - Fork 8.3k
SetDate p/invoke #6962
Copy link
Copy link
Closed
Labels
Issue-Code Cleanupthe issue is for cleaning up the code with no impact on functionalitythe issue is for cleaning up the code with no impact on functionalityWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Metadata
Metadata
Assignees
Labels
Issue-Code Cleanupthe issue is for cleaning up the code with no impact on functionalitythe issue is for cleaning up the code with no impact on functionalityWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
We use p/invoke to set system datetime.
Proposed API in CoreFX repo .
While we wait the API we could replace two
mktimeandsettimeofdaylibc calls withstimeon Unix. This eliminates unnecessary mktime call and marshaling oftmstructure.