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 #1

Updated by dmikurube (Dai MIKURUBE) over 1 year ago

Sorry, I was unaware that the origin is now in ruby/date. I re-submitted an Issue at: https://github.com/ruby/date/issues/93

Actions #2

Updated by hsbt (Hiroshi SHIBATA) over 1 year ago

  • Status changed from Open to Third Party's Issue
Actions #4

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

  • Status changed from Third Party's Issue to Closed
Actions #5

Updated by hsbt (Hiroshi SHIBATA) over 1 year ago

  • Related to Feature #17544: `Time#strftime` supports RFC 3339 UTC for unknown offset local time added
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0