Skip to content
This repository has been archived by the owner on Dec 29, 2024. It is now read-only.

Commit

Permalink
feat: timestamp to the second (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsilvapt authored Nov 1, 2021
1 parent aa021a6 commit 84ed0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ You will see the new directory and file created in the configured ZTLDIR.
toOpen, _ := cmd.Flags().GetBool("open")

ts := time.Now()
formattedTs := fmt.Sprintf("%d%d%d%d%d", ts.Year(), ts.Month(), ts.Day(), ts.Hour(), ts.Minute())
formattedTs := fmt.Sprintf("%d%d%d%d%d%d", ts.Year(), ts.Month(), ts.Day(), ts.Hour(), ts.Minute(), ts.Second())

f := createZettelEntry(ztldir, formattedTs)
defer f.Close()
Expand Down

0 comments on commit 84ed0cc

Please sign in to comment.