Project

General

Profile

Actions

Bug #19552

closed

Time.strftime("%-:::z") behaves differently between 2.7/3.0 v.s. 3.1/3.2

Added by dmikurube (Dai MIKURUBE) over 1 year ago. Updated over 1 year ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.2.1 (2023-02-08 revision 31819e82c8) [x86_64-linux]
[ruby-dev:<unknown>]

Description

puts Time.now.utc.strftime("%-:::z")

Until Ruby 3.0 (tested with 2.7.7 and 3.0.5) :

+00

From Ruby 3.1 (tested with 3.1.3 and 3.2.1)

-00

Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #17544: `Time#strftime` supports RFC 3339 UTC for unknown offset local timeClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0