DEV Community

Cover image for Command Prompt - Set Timezone
Dan Wheeler
Dan Wheeler

Posted on

Command Prompt - Set Timezone

Copy the following code into a Command Prompt window - when run it will change the timezone of the computer:

TZUTIL /s "GMT Standard Time"
Enter fullscreen mode Exit fullscreen mode

Naturally, you can change this to any timezone, not just GMT. To see a list of all available timezones, use:

TZUTIL /l
Enter fullscreen mode Exit fullscreen mode

This will print out a list of them all.

Top comments (0)