File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import (
16
16
"cdr.dev/slog"
17
17
"cdr.dev/slog/sloggers/sloghuman"
18
18
"github.com/coder/coder/v2/cli/clibase"
19
- "github.com/coder/coder/v2/coderd/util/tz"
20
19
"github.com/coder/coder/v2/codersdk"
21
20
"github.com/coder/coder/v2/support"
22
21
)
@@ -74,12 +73,7 @@ func (r *RootCmd) support() *clibase.Cmd {
74
73
if err != nil {
75
74
return xerrors .Errorf ("could not determine current working directory: %w" , err )
76
75
}
77
- loc , err := tz .TimezoneIANA ()
78
- if err != nil {
79
- loc = time .UTC
80
- }
81
- tsStr := time .Now ().In (loc ).Format ("2006-01-02-150405" )
82
- fname := "coder-support-" + tsStr + ".zip"
76
+ fname := fmt .Sprintf ("coder-support-%d.zip" , time .Now ().Unix ())
83
77
outputPath = filepath .Join (cwd , fname )
84
78
}
85
79
@@ -101,7 +95,7 @@ func (r *RootCmd) support() *clibase.Cmd {
101
95
Flag : "output" ,
102
96
FlagShorthand : "o" ,
103
97
Env : "CODER_SUPPORT_BUNDLE_OUTPUT" ,
104
- Description : "Path to which to output the generated support bundle. Defaults to coder-support-YYYYmmdd-HHMMSS .zip." ,
98
+ Description : "File path for writing the generated support bundle. Defaults to coder-support-$(date +%s) .zip." ,
105
99
Value : clibase .StringOf (& outputPath ),
106
100
},
107
101
}
You can’t perform that action at this time.
0 commit comments