diff options
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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); |