Project

General

Profile

Actions

Bug #16767

closed

Time#strftime not working correctly with a big precision on recurred formats like "%c"

Added by dmikurube (Dai MIKURUBE) over 4 years ago. Updated over 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-dev:50926]

Description

Confirmed on: Ruby 2.6.3 and 2.7.0 on Mac OS X 10.13.

Time .now .strftime("%28c")

Expected:

"    Tue Apr  7 12:44:16 2020"

Actual:

"    \u0000ue Apr  7 12:44:16 2020"

Appendix:

  • For "%c", 26 worked, but 27+ did not work.
  • Confirmed similar for other recurred formats like "%R", "%F", and else.
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0