Skip to content
clock

GitHub Action

Set Timezone

v2.0 Latest version

Set Timezone

clock

Set Timezone

Sets timezone in your locale

Installation

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

              

- name: Set Timezone

uses: szenius/set-timezone@v2.0

Learn more about this action in szenius/set-timezone

Choose a version

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: szenius/set-timezone@v2.0
with:
  timezoneLinux: "Asia/Singapore"
  timezoneMacos: "Asia/Singapore"
  timezoneWindows: "Singapore Standard Time"