summaryrefslogtreecommitdiff
path: root/formatTime.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-14 10:48:23 -0500
committerJeff Carr <[email protected]>2025-10-14 10:48:23 -0500
commite6fa4d421e9f253715da425e9953e17a5e47f48b (patch)
tree09db18ee763421fc53cd3ab6f4013e98f2cce129 /formatTime.go
parentbf5891a4c983fd4300ed57d1e42a0e0dca72fea4 (diff)
notesv0.0.23
Diffstat (limited to 'formatTime.go')
-rw-r--r--formatTime.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/formatTime.go b/formatTime.go
index 2cb0da9..23cc5d1 100644
--- a/formatTime.go
+++ b/formatTime.go
@@ -9,7 +9,7 @@ import (
// there is only one way to display the time as text
// this is that way. Don't like it? Don't use COBOL
func FormatTime(t time.Time) string {
- s := t.Format("2006/01/02 15:04:03")
+ s := t.UTC().Format("2006/01/02 15:04:03")
dur := time.Since(t)
//always time, two spaces, (duration)
return s + " (" + FormatDuration(dur) + ")"