Skip to content
clock

GitHub Action

Set OS Timezone

v1.0.0 Latest version

Set OS Timezone

clock

Set OS Timezone

Sets timezone in your locale

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Set OS Timezone

uses: WitherZuo/[email protected]

Learn more about this action in WitherZuo/set-timezone

Choose a version

Forked from szenius/set-timezone

Set Timezone Action

Test Action

This action sets timezone in your runner's locale based on its OS.

Inputs

Input name Description Required ? Default value
timezoneLinux Timezone you want to set if your runner is running on Linux false UTC
timezoneWindows Timezone you want to set if your runner is running on Windows false UTC
timezoneMacos Timezone you want to set if your runner is running on MacOS false GMT

Example usage

uses: WitherZuo/set-timezone@v1
with:
  timezoneLinux: "Asia/Singapore"
  timezoneMacos: "Asia/Singapore"
  timezoneWindows: "Singapore Standard Time"