summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/time.c b/time.c
index bd9ca1b7ba..5ed11c6cee 100644
--- a/time.c
+++ b/time.c
@@ -4189,11 +4189,11 @@ time_zone(VALUE time)
MAKE_TM(time, tobj);
if (TIME_UTC_P(tobj)) {
- return rb_str_new2("UTC");
+ return rb_obj_untaint(rb_locale_str_new_cstr("UTC"));
}
if (tobj->vtm.zone == NULL)
return Qnil;
- return rb_str_new2(tobj->vtm.zone);
+ return rb_obj_untaint(rb_locale_str_new_cstr(tobj->vtm.zone));
}
/*