jerryluk-jruby-rfc2445 0.0.3 → 0.0.4

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.
Files changed (2) hide show
  1. data/lib/ical_parse_util.rb +2 -2
  2. metadata +1 -1
@@ -7,12 +7,12 @@ class ICalParseUtil
7
7
  # Class Methods
8
8
  class << self
9
9
  def parse_date_value(s, tzid = 'UTC')
10
- timezone = java.util.TimeZone.getTimeZone(tzid)
10
+ timezone = java.util.TimeZone.getTimeZone(tzid || 'UTC')
11
11
  s ? JIcalParseUtil.parseDateValue(s, timezone) : nil
12
12
  end
13
13
 
14
14
  def parse_jtime(s, tzid = 'UTC')
15
- s ? JTime.from_date_time_value(parse_date_value(s, tzid)) : nil
15
+ s ? JTime.from_date_time_value(parse_date_value(s, tzid || 'UTC')) : nil
16
16
  end
17
17
 
18
18
  # Parse a recurrence block and returns DTSTART, DTEND, RRULE, EXRULE, RDATE, and EXDATE
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jerryluk-jruby-rfc2445
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerry Luk