summaryrefslogtreecommitdiff
path: root/internal/timestamp
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-10-18 11:35:41 +0300
committerPaul Buetow <paul@buetow.org>2024-10-18 11:35:41 +0300
commitcb3b67e54ac135376807486c808dfa2b830e38ff (patch)
treecd3d5ab7638928a525ca99ab1c25429b470df481 /internal/timestamp
parentc0ffb385eaca5dbe53817ee3c288f8dcee6b414f (diff)
updating entry timestamp after posting it
Diffstat (limited to 'internal/timestamp')
-rw-r--r--internal/timestamp/timestamp.go1
1 files changed, 1 insertions, 0 deletions
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()