[#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:88809] [Ruby trunk Feature#14850] Add official API for setting timezone on Time
From:
nobu@...
Date:
2018-09-02 15:47:24 UTC
List:
ruby-core #88809
Issue #14850 has been updated by nobu (Nobuyoshi Nakada). Here is a [patch] to extend `Time.new` and `Time#getlocal` for timezone support. A timezone object should have `local_to_utc`, `utc_to_local` and `utc_offset` methods, like [timezone gem]. [patch]: https://github.com/nobu/ruby/tree/feature/14850-timezone [timezone gem]: https://github.com/panthomakos/timezone ---------------------------------------- Feature #14850: Add official API for setting timezone on Time https://bugs.ruby-lang.org/issues/14850#change-73852 * Author: sam.saffron (Sam Saffron) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- Only way of setting zone on a Time object appears to be via marshalling and messing with ENV. ``` >> ENV['TZ'] = 'America/New_York' >> Time.now.zone => "EDT" >> ENV['TZ'] = 'Europe/London' >> Time.now.zone => "BST" ``` Is there any particular reason there is no direct, supported API for setting timezone? ActiveSupport carries http://api.rubyonrails.org/v5.1/classes/ActiveSupport/TimeWithZone.html for this exact reason, it would be nice for core Ruby to support this out-of-the-box -- 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>