small fix, don't worry about it

This commit is contained in:
Tomas Dvorak
2026-04-10 12:02:36 +02:00
parent 08bd0c6e5c
commit 08cb5754f3
638 changed files with 57332 additions and 34706 deletions
+18
View File
@@ -0,0 +1,18 @@
package utils
import "time"
// FormatTime formats a time string for display
func FormatTime(timeStr string) string {
if timeStr == "" {
return "Unknown"
}
// Parse the time and format it nicely
t, err := time.Parse(time.RFC3339, timeStr)
if err != nil {
return timeStr // Return original if parsing fails
}
return t.Format("2006-01-02 15:04:05")
}