ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:119519] [Ruby master Bug#20797] UTC offset seconds is not checked
@ 2024-10-14  4:38 nobu (Nobuyoshi Nakada) via ruby-core
  2024-10-21  8:50 ` [ruby-core:119546] [Ruby master Bug#20797] UTC offset seconds part " nagachika (Tomoyuki Chikanaga) via ruby-core
  2024-11-04 22:42 ` [ruby-core:119712] " k0kubun (Takashi Kokubun) via ruby-core
  0 siblings, 2 replies; 3+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2024-10-14  4:38 UTC (permalink / raw)
  To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)

Issue #20797 has been reported by nobu (Nobuyoshi Nakada).

----------------------------------------
Bug #20797: UTC offset seconds is not checked
https://bugs.ruby-lang.org/issues/20797

* Author: nobu (Nobuyoshi Nakada)
* Status: Open
* Backport: 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED
----------------------------------------
While this raise ArgumentError:

```ruby
Time.new(2024, 12, 25, 0, 0, 0, "+09:99") # ... expected for utc_offset (ArgumentError)
```

This is obviously weird.

```ruby
Time.new(2024, 12, 25, 0, 0, 0, "+09:00:99").strftime("%::z") #=> "+09:01:39"
```

The latter should be an error as well as former.



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:119546] [Ruby master Bug#20797] UTC offset seconds part is not checked
  2024-10-14  4:38 [ruby-core:119519] [Ruby master Bug#20797] UTC offset seconds is not checked nobu (Nobuyoshi Nakada) via ruby-core
@ 2024-10-21  8:50 ` nagachika (Tomoyuki Chikanaga) via ruby-core
  2024-11-04 22:42 ` [ruby-core:119712] " k0kubun (Takashi Kokubun) via ruby-core
  1 sibling, 0 replies; 3+ messages in thread
From: nagachika (Tomoyuki Chikanaga) via ruby-core @ 2024-10-21  8:50 UTC (permalink / raw)
  To: ruby-core; +Cc: nagachika (Tomoyuki Chikanaga)

Issue #20797 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED to 3.1: REQUIRED, 3.2: WONTFIX, 3.3: REQUIRED

I think the issue is trivial and the making the validation more restrictive could cause errors in applications.
I decided to WONTFIX on ruby_3_2.

----------------------------------------
Bug #20797: UTC offset seconds part is not checked
https://bugs.ruby-lang.org/issues/20797#change-110163

* Author: nobu (Nobuyoshi Nakada)
* Status: Closed
* Backport: 3.1: REQUIRED, 3.2: WONTFIX, 3.3: REQUIRED
----------------------------------------
While this raise ArgumentError:

```ruby
Time.new(2024, 12, 25, 0, 0, 0, "+09:99") # ... expected for utc_offset (ArgumentError)
```

This is obviously weird.

```ruby
Time.new(2024, 12, 25, 0, 0, 0, "+09:00:99").strftime("%::z") #=> "+09:01:39"
```

The latter should be an error as well as the former.



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:119712] [Ruby master Bug#20797] UTC offset seconds part is not checked
  2024-10-14  4:38 [ruby-core:119519] [Ruby master Bug#20797] UTC offset seconds is not checked nobu (Nobuyoshi Nakada) via ruby-core
  2024-10-21  8:50 ` [ruby-core:119546] [Ruby master Bug#20797] UTC offset seconds part " nagachika (Tomoyuki Chikanaga) via ruby-core
@ 2024-11-04 22:42 ` k0kubun (Takashi Kokubun) via ruby-core
  1 sibling, 0 replies; 3+ messages in thread
From: k0kubun (Takashi Kokubun) via ruby-core @ 2024-11-04 22:42 UTC (permalink / raw)
  To: ruby-core; +Cc: k0kubun (Takashi Kokubun)

Issue #20797 has been updated by k0kubun (Takashi Kokubun).

Backport changed from 3.1: REQUIRED, 3.2: WONTFIX, 3.3: REQUIRED to 3.1: REQUIRED, 3.2: WONTFIX, 3.3: WONTFIX

I feel the same about it. This is gonna be a WONTFIX for `ruby_3_3` too.

----------------------------------------
Bug #20797: UTC offset seconds part is not checked
https://bugs.ruby-lang.org/issues/20797#change-110376

* Author: nobu (Nobuyoshi Nakada)
* Status: Closed
* Backport: 3.1: REQUIRED, 3.2: WONTFIX, 3.3: WONTFIX
----------------------------------------
While this raise ArgumentError:

```ruby
Time.new(2024, 12, 25, 0, 0, 0, "+09:99") # ... expected for utc_offset (ArgumentError)
```

This is obviously weird.

```ruby
Time.new(2024, 12, 25, 0, 0, 0, "+09:00:99").strftime("%::z") #=> "+09:01:39"
```

The latter should be an error as well as the former.



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-04 22:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-14  4:38 [ruby-core:119519] [Ruby master Bug#20797] UTC offset seconds is not checked nobu (Nobuyoshi Nakada) via ruby-core
2024-10-21  8:50 ` [ruby-core:119546] [Ruby master Bug#20797] UTC offset seconds part " nagachika (Tomoyuki Chikanaga) via ruby-core
2024-11-04 22:42 ` [ruby-core:119712] " k0kubun (Takashi Kokubun) via ruby-core

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).