From fcdd0f530837147ebdcfb85eba72ef45ccc972a8 Mon Sep 17 00:00:00 2001 From: Oskar Eichler Date: Thu, 27 Aug 2026 20:41:00 +0300 Subject: [PATCH] Use the resolved current time when formatting a nil timestamp --- lib/fugit/misc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fugit/misc.rb b/lib/fugit/misc.rb index 9d066c3..d4fca02 100644 --- a/lib/fugit/misc.rb +++ b/lib/fugit/misc.rb @@ -15,7 +15,7 @@ def isostamp(show_date, show_time, show_usec, time) s << t.strftime('%Y-%m-%d') if show_date s << t.strftime('T%H:%M:%S') if show_time s << sprintf('.%06d', t.usec) if show_time && show_usec - s << 'Z' if show_time && time.utc? + s << 'Z' if show_time && t.utc? s.string end