0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 18:42:58 +00:00

fix(time): embed timezone data to fix set/get TZ on windows (#1436)

* fix(time): embed timezone data to fix set/get TZ on windows

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
This commit is contained in:
Pavel Boldyrev 2024-07-10 21:07:40 -04:00 committed by GitHub
parent 0a978e5664
commit b4d4e4f9d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -27,10 +27,10 @@ func TestAccResourceTime(t *testing.T) {
{
Config: te.RenderConfig(`resource "proxmox_virtual_environment_time" "node_time" {
node_name = "{{.NodeName}}"
time_zone = "America/New_York"
time_zone = "Europe/Amsterdam"
}`),
Check: ResourceAttributes("proxmox_virtual_environment_time.node_time", map[string]string{
"time_zone": "America/New_York",
"time_zone": "Europe/Amsterdam",
}),
},
{

View File

@ -10,6 +10,7 @@ import (
"context"
"fmt"
"time"
_ "time/tzdata" // Load time zone data, see https://pkg.go.dev/time/tzdata
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"