aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-09-08 11:41:21 +0100
committerKatharina Fey <kookie@spacekookie.de>2019-09-08 12:33:58 +0100
commitc6309ab2f3df23e8f85c5b27b94734c19a99af39 (patch)
tree3a856de696a1e6c265f78fd5baa9c5f4efec5994
parent00e9f02b394c63b43a0890a88d8a2c5de03a921a (diff)
Adding zone info to time stringHEADmaster
-rw-r--r--timestring.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/timestring.rb b/timestring.rb
index 29c2dee..21996d7 100644
--- a/timestring.rb
+++ b/timestring.rb
@@ -71,8 +71,10 @@ class TimeString
end
end
def to_s
+ # This code always requires to be run on a UTC system,
+ # which dudle.open-communication.net is
if @time
- "#{CGI.escapeHTML(@date.to_s)} #{time_to_s}"
+ "#{CGI.escapeHTML(@date.to_s)} #{time_to_s} (UTC)"
else
CGI.escapeHTML(@date.to_s)
end