Skip to content

Set-TimeZone is missing #1109

Closed
Closed

Description

Steps to reproduce

10.123.172.176]: PS C:\Users\LocalAdmin\Documents> Set-TimeZone -id 'Pacific Standard Time'

Expected behavior

Sets the timezone

Actual behavior

Unable to load DLL 'api-ms-win-downlevel-kernel32-l1.dll': The specified module could not be found. (Exception from
HRESULT: 0x8007007E)
+ CategoryInfo : NotSpecified: (:) [Set-TimeZone], DllNotFoundException
+ FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.PowerShell.Commands.SetTimeZoneCommand

Environment data

Running on nano using script from nano team

v0.4.0

> $PSVersionTable

Name                           Value
----                           -----
WSManStackVersion              3.0
PSVersion                      5.1.14361.1000
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSEdition                      Core
PSRemotingProtocolVersion      2.3
CLRVersion
SerializationVersion           1.1.0.1
BuildVersion                   10.0.14361.1000
$ dotnet --info
.NET Command Line Tools (1.0.0-preview2-003096)

Product Information:
 Version:            1.0.0-preview2-003096
 Commit SHA-1 hash:  191812690d

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14353
 OS Platform: Windows
 RID:         win10-x64

$ git rev-parse HEAD; git status
D:\git\PowerShell [master ≡ +2 ~0 -3 !]> git rev-parse HEAD; git status
ebd28ec6651347e11a4efef492817565e6c6b49d
On branch master
Your branch is up-to-date with 'PowerShell/master'.
nothing to commit, working directory clean

Activity

  1. andyleejordan commented on Jun 15, 2016

    @andyleejordan
    Member

    This is not how setting the timezone on Linux works. We should probably make this throw a platform unsupported exception.

  2. TravisEz13 commented on Jun 29, 2016

    @TravisEz13
    MemberAuthor

    Per Dongbo Wang (@daxian-dbw) timezone.cs is missing in Management.dll

  3. changed the title [-]Set-TimeZone fails with unable to load dll[/-] [+]Set-TimeZone is missing[/+] on Jul 7, 2016
  4. daxian-dbw commented on Jul 7, 2016

    @daxian-dbw
    Member

    The PR #1285 add the TimeZone cmdlets back to OSPS Travis Plunk (@TravisEz13)
    However, the TimeZone cmdlets are excluded for Linux build.

  5. TravisEz13 commented on Jul 8, 2016

    @TravisEz13
    MemberAuthor

    Verified fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BVT/DRTAn issue affecting or exposed by tests that have not been open sourcedResolution-FixedThe issue is fixed.WG-Cmdletsgeneral cmdlet issues

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions