mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-01 11:02:59 +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:
parent
0a978e5664
commit
b4d4e4f9d4
@ -27,10 +27,10 @@ func TestAccResourceTime(t *testing.T) {
|
|||||||
{
|
{
|
||||||
Config: te.RenderConfig(`resource "proxmox_virtual_environment_time" "node_time" {
|
Config: te.RenderConfig(`resource "proxmox_virtual_environment_time" "node_time" {
|
||||||
node_name = "{{.NodeName}}"
|
node_name = "{{.NodeName}}"
|
||||||
time_zone = "America/New_York"
|
time_zone = "Europe/Amsterdam"
|
||||||
}`),
|
}`),
|
||||||
Check: ResourceAttributes("proxmox_virtual_environment_time.node_time", map[string]string{
|
Check: ResourceAttributes("proxmox_virtual_environment_time.node_time", map[string]string{
|
||||||
"time_zone": "America/New_York",
|
"time_zone": "Europe/Amsterdam",
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -10,6 +10,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"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/diag"
|
||||||
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
|
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
|
||||||
|
Loading…
Reference in New Issue
Block a user