Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal: Add support for timezone #620

Open
3 tasks done
fundor333 opened this issue Oct 23, 2022 · 1 comment
Open
3 tasks done

proposal: Add support for timezone #620

fundor333 opened this issue Oct 23, 2022 · 1 comment
Assignees
Labels
proposal Feature request

Comments

@fundor333
Copy link

Checklist

  • I am using the latest version of this action.
  • I have read the latest README and followed the instructions.
  • I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.

Describe your proposal

Add an option for set the timezone for the build.
If I locate the site in Paris I need to add more action to the workflow

Describe the solution you'd like

I like something like this

  - name: Set up Hugo
    uses: peaceiris/actions-hugo@v2
    with:
      hugo-version: "latest"
      extended: true
      timezone: Europe/Paris

Describe alternatives you've considered

I considered use other action for set the timezone but it is more run time for the action

Additional context

No additional context

@fundor333 fundor333 added the proposal Feature request label Oct 23, 2022
@peaceiris
Copy link
Owner

Could you try TZ env?

      - name: Build
        env: 
          TZ: "Asia/Tokyo"
        run: hugo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Feature request
Projects
None yet
Development

No branches or pull requests

2 participants