Skip to content

Commit c59c176

Browse files
authored
fix --timezone default value (#31)
--timezone was using as a default value "utc" however the expected value for LoadLocation was in uppercase. See: https://github.com/golang/go/blob/f09db2bb9331f4b31afb867173b1773e6494af27/src/time/zoneinfo.go#L667
1 parent 908b104 commit c59c176

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

commands/new.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func NewScriptCmd() *cobra.Command {
6161
cmd.Flags().StringP("driver", "d", "", "the driver to use.")
6262
cmd.Flags().BoolP("timestamp", "t", false, "a timestamp prefix will be added to migration file if set.")
6363
cmd.Flags().StringP("timeformat", "f", "unix", "timestamp format to be used for timestamps.")
64-
cmd.Flags().StringP("timezone", "z", "utc", "time zone to be used for timestamps.")
64+
cmd.Flags().StringP("timezone", "z", "UTC", "time zone to be used for timestamps.")
6565
cmd.Flags().BoolP("sequence", "s", false, "a sequence number prefix will be added to migration file if set.")
6666
_ = cmd.MarkFlagRequired("driver")
6767

@@ -78,7 +78,7 @@ func NewGenerateCmd() *cobra.Command {
7878
cmd.Flags().StringP("driver", "d", "", "the driver to use.")
7979
cmd.Flags().BoolP("timestamp", "t", false, "a timestamp prefix will be added to migration file if set.")
8080
cmd.Flags().StringP("timeformat", "f", "unix", "timestamp format to be used for timestamps.")
81-
cmd.Flags().StringP("timezone", "z", "utc", "time zone to be used for timestamps.")
81+
cmd.Flags().StringP("timezone", "z", "UTC", "time zone to be used for timestamps.")
8282
cmd.Flags().BoolP("sequence", "s", false, "a sequence number prefix will be added to migration file if set.")
8383
_ = cmd.MarkFlagRequired("driver")
8484

0 commit comments

Comments
 (0)