Skip to content

Commit

Permalink
Merge branch 'master' into rebased-add-date-flag
Browse files Browse the repository at this point in the history
  • Loading branch information
satotake committed Apr 26, 2022
2 parents bb972d4 + 9a888c2 commit d939d3e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions commands/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ List requires a subcommand, e.g. ` + "`hugo list drafts`.",
return newSystemError("Error building sites", err)
}

buildTime, err := htime.ParseBuildTimeDefaultNow(b.buildTime)
if err != nil {
return newSystemError("Error building sites", err)
}

writer := csv.NewWriter(os.Stdout)
defer writer.Flush()

Expand Down Expand Up @@ -133,11 +128,6 @@ List requires a subcommand, e.g. ` + "`hugo list drafts`.",
return newSystemError("Error building sites", err)
}

buildTime, err := htime.ParseBuildTimeDefaultNow(b.buildTime)
if err != nil {
return newSystemError("Error building sites", err)
}

writer := csv.NewWriter(os.Stdout)
defer writer.Flush()

Expand Down
2 changes: 1 addition & 1 deletion tpl/time/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
)

// New returns a new instance of the time-namespaced template functions.
func New(translator locales.Translator, location *time.Location, buildTime time.Time) *Namespace {
func New(timeFormatter htime.TimeFormatter, location *time.Location, buildTime time.Time) *Namespace {
return &Namespace{
timeFormatter: timeFormatter,
location: location,
Expand Down

0 comments on commit d939d3e

Please sign in to comment.