Skip to content
clock

GitHub Action

TimezoneAction

v1.1 Latest version

TimezoneAction

clock

TimezoneAction

Sets timezone in your locale

Installation

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

              

- name: TimezoneAction

uses: MathRobin/timezone-action@v1.1

Learn more about this action in MathRobin/timezone-action

Choose a version

Set Timezone Action

Maintained fork from https://github.com/szenius/set-timezone (Abandoned project)

Test all Platforms

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: MathRobin/timezone-action@v1.1
with:
  timezoneLinux: 'Asia/Singapore'
  timezoneMacos: 'Europe/Paris'
  timezoneWindows: 'W. Central Africa Standard Time'