summaryrefslogtreecommitdiff
path: root/time.go
diff options
context:
space:
mode:
Diffstat (limited to 'time.go')
-rw-r--r--time.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/time.go b/time.go
index ca38233..48af980 100644
--- a/time.go
+++ b/time.go
@@ -34,6 +34,9 @@ func isUTC(t time.Time) bool {
func TimeLocal(someTimeAgoOrLaterNotsure any) string {
guess, t, err := TimeCheck(someTimeAgoOrLaterNotsure)
+ if t != nil {
+ return FormatTimeLocal(*t)
+ }
if errors.Is(err, Broken) {
if len(guess) > 0 {
return fmt.Sprintf("%-15s", guess)