jruby-rfc2445 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jtime.rb +3 -2
- data/spec/rfc2445_spec.rb +1 -1
- metadata +1 -1
data/lib/jtime.rb
CHANGED
@@ -100,10 +100,11 @@ class JTime
|
|
100
100
|
self
|
101
101
|
end
|
102
102
|
|
103
|
-
# Returns a Ruby Time object
|
103
|
+
# Returns a Ruby Time object, since Ruby Time object has limited time zone support,
|
104
|
+
# it always return a UTC time
|
104
105
|
def to_time
|
105
106
|
millis = @time.getMillis
|
106
|
-
Time.at(millis / 1000, millis % 1000 * 1000)
|
107
|
+
Time.at(millis / 1000, millis % 1000 * 1000).utc
|
107
108
|
end
|
108
109
|
|
109
110
|
# Returns the underlying Java DateTime object
|
data/spec/rfc2445_spec.rb
CHANGED