* [ruby-dev:50934] [Ruby master Bug#17046] Time#to_a yday is 0(given timezone info)
@ 2020-07-23 18:37 gamelinks007
2020-07-23 18:54 ` [ruby-dev:50935] " gamelinks007
0 siblings, 1 reply; 2+ messages in thread
From: gamelinks007 @ 2020-07-23 18:37 UTC (permalink / raw)
To: ruby-dev
Issue #17046 has been reported by S_H_ (Shun Hiraoka).
----------------------------------------
Bug #17046: Time#to_a yday is 0(given timezone info)
https://bugs.ruby-lang.org/issues/17046
* Author: S_H_ (Shun Hiraoka)
* Status: Open
* Priority: Normal
* ruby -v: 2.8.0dev (2020-07-23T14:44:25Z master 098e8c2873) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
I interest in Time#to_a behavior(background is Bug #17042)
Tried whether yday is displayed correctly in `Time #to_a`.
But, yday seems to be 0 when passing the time zone.
```bash
$ ruby -v
ruby 2.8.0dev (2020-07-23T14:44:25Z master 098e8c2873) [x86_64-linux]
$ ruby -r tzinfo -e "p Time.new(2020, 7, 22, 12, 0, 0).to_a"
[0, 0, 12, 22, 7, 2020, 3, 204, false, "JST"]
ruby -r tzinfo -e "p Time.new(2020, 7, 22, 12, 0, 0, TZInfo::Timezone.get('America/New_York')).to_a"
[0, 0, 12, 22, 7, 2020, 7, 0, false, #<TZInfo::DataTimezone: America/New_York>]
```
May be must to backport to `2.6` & `2.7`.
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ruby-dev:50935] [Ruby master Bug#17046] Time#to_a yday is 0(given timezone info)
2020-07-23 18:37 [ruby-dev:50934] [Ruby master Bug#17046] Time#to_a yday is 0(given timezone info) gamelinks007
@ 2020-07-23 18:54 ` gamelinks007
0 siblings, 0 replies; 2+ messages in thread
From: gamelinks007 @ 2020-07-23 18:54 UTC (permalink / raw)
To: ruby-dev
Issue #17046 has been updated by S_H_ (Shun Hiraoka).
Patch was created: https://github.com/ruby/ruby/pull/3355
----------------------------------------
Bug #17046: Time#to_a yday is 0(given timezone info)
https://bugs.ruby-lang.org/issues/17046#change-86692
* Author: S_H_ (Shun Hiraoka)
* Status: Open
* Priority: Normal
* ruby -v: 2.8.0dev (2020-07-23T14:44:25Z master 098e8c2873) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
I interest in Time#to_a behavior(background is Bug #17042)
Tried whether yday is displayed correctly in `Time #to_a`.
But, yday seems to be 0 when passing the time zone.
```bash
$ ruby -v
ruby 2.8.0dev (2020-07-23T14:44:25Z master 098e8c2873) [x86_64-linux]
$ ruby -r tzinfo -e "p Time.new(2020, 7, 22, 12, 0, 0).to_a"
[0, 0, 12, 22, 7, 2020, 3, 204, false, "JST"]
ruby -r tzinfo -e "p Time.new(2020, 7, 22, 12, 0, 0, TZInfo::Timezone.get('America/New_York')).to_a"
[0, 0, 12, 22, 7, 2020, 7, 0, false, #<TZInfo::DataTimezone: America/New_York>]
```
May be must to backport to `2.6` & `2.7`.
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-23 18:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-23 18:37 [ruby-dev:50934] [Ruby master Bug#17046] Time#to_a yday is 0(given timezone info) gamelinks007
2020-07-23 18:54 ` [ruby-dev:50935] " gamelinks007
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).