summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/time.c b/time.c
index 1b18859bcc..a06f1abf2a 100644
--- a/time.c
+++ b/time.c
@@ -841,6 +841,9 @@ time_zone(time)
time_get_tm(time, tobj->gmt);
}
+ if (tobj->gmt == 1) {
+ return rb_str_new2("UTC");
+ }
#if defined(HAVE_TM_ZONE)
return rb_str_new2(tobj->tm.tm_zone);
#elif defined(HAVE_TZNAME) && defined(HAVE_DAYLIGHT)