summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-01-25 20:14:51 +0200
committerPaul Buetow <paul@buetow.org>2024-01-25 20:14:51 +0200
commitad98bb6a54bf26fc859db8eb1dcefb97c0a604e6 (patch)
tree3debf8a8cc60c68b63d1d20e9c592b2f42b55432
parent3017e756a9c4fe1e386f10ed5f166f06ef046c8f (diff)
use timestamp in file name
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 1850a73..9dea3f0 100644
--- a/main.go
+++ b/main.go
@@ -26,7 +26,7 @@ func main() {
button := widget.NewButton("Log text", func() {
content := input.Text
- filename := fmt.Sprintf("%s/quicklog-%d.md", storageDir, time.Now().Unix())
+ filename := fmt.Sprintf("%s/ql-%s.md", storageDir, time.Now().Format("060102-150405"))
err := os.WriteFile(filename, []byte(content), 0644)
if err != nil {
dialog.ShowError(err, w)