summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/time.c b/time.c
index 78863e0535..cadd72cf19 100644
--- a/time.c
+++ b/time.c
@@ -633,13 +633,10 @@ time_to_s(time)
if (tobj->tm_got == 0) {
time_get_tm(time, tobj->gmt);
}
-#ifndef HAVE_TM_ZONE
if (tobj->gmt == 1) {
- len = strftime(buf, 128, "%a %b %d %H:%M:%S GMT %Y", &tobj->tm);
+ len = strftime(buf, 128, "%a %b %d %H:%M:%S UTC %Y", &tobj->tm);
}
- else
-#endif
- {
+ else {
len = strftime(buf, 128, "%a %b %d %H:%M:%S %Z %Y", &tobj->tm);
}
return rb_str_new(buf, len);