From cb3b67e54ac135376807486c808dfa2b830e38ff Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 18 Oct 2024 11:35:41 +0300 Subject: updating entry timestamp after posting it --- internal/timestamp/timestamp.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/timestamp') diff --git a/internal/timestamp/timestamp.go b/internal/timestamp/timestamp.go index 425bc2f..fb1fe50 100644 --- a/internal/timestamp/timestamp.go +++ b/internal/timestamp/timestamp.go @@ -34,6 +34,7 @@ func OldestValidTime() time.Time { return oldestValidTime } +// TODO: Maybe make this safer? func UpdateInFilename(filename string, rIndex int) string { parts := strings.Split(filename, ".") parts[len(parts)+rIndex] = Now() -- cgit v1.2.3