Project

General

Profile

Actions

Bug #18922

closed

Time at 24:00:00 UTC is not normalized

Added by nobu (Nobuyoshi Nakada) over 2 years ago. Updated over 2 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:109233]

Description

Reported by @mame (Yusuke Endoh).

$ ruby3.0 -e 'p Time.new(2000, 1, 1, 24, 0, 0, "-00:00").to_a[0, 6]'
[0, 0, 0, 2, 1, 2000]
$ ruby3.1 -e 'p Time.new(2000, 1, 1, 24, 0, 0, "-00:00").to_a[0, 6]'
[0, 0, 24, 1, 1, 2000]
$ ruby3.2 -e 'p Time.new(2000, 1, 1, 24, 0, 0, "-00:00").to_a[0, 6]'
[0, 0, 24, 1, 1, 2000]

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #19106: Time - Hour 24 with tzinfo to_s bugClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0