Issue #8376 has been updated by matz (Yukihiro Matsumoto).


I admit this is a bad design, but changing it introduces incompatibility.
We don't consider it as a bug (thus we rejected).
Submit feature request instead, if you really want to change.
Maybe fixed in the future, if we can provide proper migration path.

Matz.

----------------------------------------
Bug #8376: utc method changes original time object
https://bugs.ruby-lang.org/issues/8376#change-39179

Author: arjan0307 (Arjan Diepenbroek)
Status: Rejected
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: 1.8.7, 1.9.3, 2.0.0
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


The utc method changes the original time object when called.

For example when on a system with a CET timezone.

t = Time.new(2013)
t.zone # CET
t.utc
t.zone # UTC


-- 
http://bugs.ruby-lang.org/