Windowsserverdocs: Quotation marks are required for timezone identifiers

Created on 11 Sep 2020  Â·  5Comments  Â·  Source: MicrosoftDocs/windowsserverdocs

Both examples for the /s switch are wrong, as quotation marks are required for timezone identifiers

The examples listed for the /s switch are wrong and do no match the correct examples given by running tzutil /?

Current examples on page:

tzutil /s Pacific Standard time
and
tzutil /s Pacific Standard time_dstoff

Correct syntax must include quotation marks around the TZ identifier, e.g.
tzutil /s "Pacific Standard Time"
and
tzutil /s "Pacific Standard Time_dstoff"


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 windows-commandtech windows-serveprod

Most helpful comment

@illfated @jschlackman I've actually already made the change in my current pull request. This should be published in the next few days and you should see the update.

All 5 comments

Thanks, good point. I will open a Pull Request to have that issue resolved.
Anything else on the same page, while I suggest your changes?

@illfated @jschlackman I've actually already made the change in my current pull request. This should be published in the next few days and you should see the update.

Thanks. Good work, thank you for noticing and posting. 😺

Microsoft Windows [Version 10.0.19041.388]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\Users\illfated>tzutil /?
Windows Time Zone Utility

Usage:
TZUTIL </? | /g | /s TimeZoneID[_dstoff] | /l>

Parameters:
    /? Displays usage information.

    /g Displays the current time zone ID.

    /s TimeZoneID[_dstoff]
       Sets the current time zone using the specified time zone ID.
       The _dstoff suffix disables Daylight Saving Time adjustments
       for the time zone (where applicable).

    /l Lists all valid time zone IDs and display names. The output will
       be:
           <display name>
           <time zone ID>

Examples:
    TZUTIL /g
    TZUTIL /s "Pacific Standard Time"
    TZUTIL /s "Pacific Standard Time_dstoff"

Remarks:
    An exit code of 0 indicates the command completed successfully.

C:\Users\illfated>_

please-close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chall3ng3r picture chall3ng3r  Â·  4Comments

wilsonnkwan picture wilsonnkwan  Â·  4Comments

tgmoorhead picture tgmoorhead  Â·  4Comments

ElimAdmin picture ElimAdmin  Â·  3Comments

SimonWaters picture SimonWaters  Â·  5Comments