Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
clock

GitHub Action

Set Timezone

v1.1

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/[email protected]

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/[email protected]
with:
  timezoneLinux: "Asia/Singapore"
  timezoneMacos: "Asia/Singapore"
  timezoneWindows: "Singapore Standard Time"