Skip to content

Commit

Permalink
tweak default format
Browse files Browse the repository at this point in the history
  • Loading branch information
bgetsug committed Mar 8, 2018
1 parent 2c8bc09 commit 9299df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/conv.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ var (
var convCmd = &cobra.Command{
Use: "conv [time | year] [month] [day] [hour] [minute] [second] [nanosecond]",
Short: "Convert a time",
Run: conv,
Run: conv,
}

func init() {
RootCmd.AddCommand(convCmd)

flags := convCmd.PersistentFlags()

flags.StringVarP(&format, "format", "f", time.RFC3339, "The format (layout) of the input time")
flags.StringVarP(&format, "format", "f", "2006-01-02 15:04:05 -0700 MST", "The format (layout) of the input time")
flags.StringVarP(&timezone, "timezone", "z", time.Local.String(), "")
}

Expand Down

0 comments on commit 9299df0

Please sign in to comment.