Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func TestIntegration(t *testing.T) {
"workspace_preset.parameters.param": `preset param value`,
"workspace_preset.prebuilds.instances": `1`,
"workspace_preset.prebuilds.expiration_policy.ttl": `86400`,
"workspace_preset.prebuilds.scheduling.timezone": `UTC`,
"workspace_preset.prebuilds.scheduling.timezone": `America/New_York`,
"workspace_preset.prebuilds.scheduling.schedule0.cron": `\* 8-18 \* \* 1-5`,
"workspace_preset.prebuilds.scheduling.schedule0.instances": `3`,
"workspace_preset.prebuilds.scheduling.schedule1.cron": `\* 8-14 \* \* 6`,
Expand Down
2 changes: 1 addition & 1 deletion integration/test-data-source/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ data "coder_workspace_preset" "preset" {
ttl = 86400
}
scheduling {
timezone = "UTC"
timezone = "America/New_York"
schedule {
cron = "* 8-18 * * 1-5"
instances = 3
Expand Down
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ package main

import (
"flag"
// Embed timezone data for use in environments that may not have the
// timezone database available (e.g. scratch Docker images).
_ "time/tzdata"

"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"

Expand Down