Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

core: map Etc/* timezones to 'host' for pct compatibility#10020

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tremor021 merged 1 commit intomainfromfix/timezone-etc-utc-fallback
Dec 16, 2025

Conversation

@MickLesk
Copy link
Member

✍️ Description

pct create --timezone only accepts timezones from zone.tab or the special value 'host'. Etc/* zones (like Etc/UTC) are valid Linux timezones but not accepted by pct, causing container creation to fail with 'invalid time zone' error.

This change automatically maps any Etc/* timezone to 'host', which inherits the host's timezone - giving users the expected behavior when their Proxmox host is set to Etc/UTC.

🔗 Related Issue

Fixes#9974

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕New script – A fully functional and tested script or script set.
  • 🌍Website update – Changes to website-related JSON files or metadata.
  • 🔧Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝Documentation update – Changes toREADME,AppName.md,CONTRIBUTING.md, or other docs.

@MickLeskMickLesk requested a review froma team as acode ownerDecember 16, 2025 09:22
@MickLeskMickLeskforce-pushed thefix/timezone-etc-utc-fallback branch from421fe79 tofd4e6f4CompareDecember 16, 2025 09:22
pct create --timezone only accepts timezones from zone.tab or thespecial value 'host'. Etc/* zones (like Etc/UTC) are valid Linuxtimezones but not accepted by pct, causing container creation to failwith 'invalid time zone' error.This change automatically maps any Etc/* timezone to 'host' at:- Host timezone detection (advanced_settings)- var_timezone from App Defaults- base_settings() for default path- pct create command buildingThis ensures consistent behavior: users see 'host' in the UI,App Defaults save 'host', and container creation succeeds.
@MickLeskMickLeskforce-pushed thefix/timezone-etc-utc-fallback branch fromfd4e6f4 to62ab46aCompareDecember 16, 2025 09:28
@tremor021tremor021 merged commit7ab0327 intomainDec 16, 2025
1 check passed
@tremor021tremor021 deleted the fix/timezone-etc-utc-fallback branchDecember 16, 2025 10:28
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tremor021tremor021tremor021 approved these changes

@CrazyWolf13CrazyWolf13CrazyWolf13 approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

KeyCloak: can't cope with TZ 'Etc/UTC'

3 participants

@MickLesk@tremor021@CrazyWolf13

[8]ページ先頭

©2009-2025 Movatter.jp