Skip to content

Commit

Permalink
Bugfix for sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Hepworth authored and Karl Hepworth committed Sep 1, 2017
1 parent b5d7c53 commit 74150de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make/make.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ func (Site *Site) TimeStampSet(value string) {
func (Site *Site) TimeStampReset() {
now := time.Now()
r := rand.Intn(100) * rand.Intn(100)
Site.Timestamp = fmt.Sprintf(".%v", now.Format("20060102150405"), r)
Site.Timestamp = fmt.Sprintf(".%v_%v", now.Format("20060102150405"), r)
}

// TimeStampGenerate generates a new timestamp and returns it, does not latch to site struct
Expand Down

0 comments on commit 74150de

Please sign in to comment.