jruby-rfc2445 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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