[#88925] [Ruby trunk Feature#15095] [PATCH] share VM stack between threads and fibers if identical — ko1@...
Issue #15095 has been updated by ko1 (Koichi Sasada).
4 messages
2018/09/09
[#88927] Re: [Ruby trunk Feature#15095] [PATCH] share VM stack between threads and fibers if identical
— Eric Wong <normalperson@...>
2018/09/09
ko1@atdot.net wrote:
[#88926] [Ruby trunk Feature#15095] [PATCH] share VM stack between threads and fibers if identical — ko1@...
Issue #15095 has been updated by ko1 (Koichi Sasada).
3 messages
2018/09/09
[#89218] [Ruby trunk Bug#15130] open-uri hangs on cygwin — duerst@...
Issue #15130 has been updated by duerst (Martin D端rst).
5 messages
2018/09/30
[ruby-core:88817] [Ruby trunk Bug#14880] Time#localtime doesn't always seem to respect TZ
From:
nobu@...
Date:
2018-09-03 07:41:03 UTC
List:
ruby-core #88817
Issue #14880 has been updated by nobu (Nobuyoshi Nakada). I feel it'd be better to accept a timezone object as `utc_offset` like [Feature #14850], than setting `ENV`. ---------------------------------------- Bug #14880: Time#localtime doesn't always seem to respect TZ https://bugs.ruby-lang.org/issues/14880#change-73861 * Author: ioquatix (Samuel Williams) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- In the first case, calling `#localtime` doesn't change the utc_offset. ``` $ TZ=UTC ruby -e 'ENV["TZ"]="Pacific/Auckland"; puts t=Time.new; ENV["TZ"]="UTC"; puts t.localtime' 2018-06-29 16:21:36 +1200 2018-06-29 16:21:36 +1200 $ TZ=UTC ruby -e 'ENV["TZ"]="Pacific/Auckland"; puts t=Time.new; ENV["TZ"]="UTC"; puts Time.new(t.year, t.month, t.day, t.hour, t.min, t.sec, t.utc_offset).localtime' 2018-06-29 16:23:08 +1200 2018-06-29 04:23:08 +0000 ``` In the second case, by creating new time, calling `#localtime` works as expected. It seems like once a time instance is "localtime", calling `#localtime` a 2nd time does not have any effect. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>