From 5b7439bb7b1088ef5233175893229970cee339fd Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 16 Feb 2021 19:28:28 +0900 Subject: UTC zone should be still "+00:00" [Feature #17544] --- strftime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'strftime.c') diff --git a/strftime.c b/strftime.c index 88cdb2198c..c3d600114f 100644 --- a/strftime.c +++ b/strftime.c @@ -547,7 +547,7 @@ rb_strftime_with_timespec(VALUE ftime, const char *format, size_t format_len, else { off = NUM2LONG(rb_funcall(vtm->utc_offset, rb_intern("round"), 0)); } - if (off < 0 || (off == 0 && (flags & BIT_OF(LEFT)))) { + if (off < 0 || (gmt && (flags & BIT_OF(LEFT)))) { off = -off; sign = -1; } -- cgit v1.2.1