Skip to content

Commit

Permalink
Replaced dependency for parsedate to date (deprecated on 1.9.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
clbustos committed Apr 4, 2010
1 parent 1799081 commit 8801d64
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/rtf/information.rb
@@ -1,8 +1,7 @@
#!/usr/bin/env ruby

require 'stringio'
require 'parsedate'

require 'date'
module RTF
# This class represents an information group for a RTF document.
class Information
Expand Down Expand Up @@ -56,7 +55,7 @@ def created=(setting)
if setting.instance_of?(Time)
@created = setting
else
datetime = ParseDate::parsedate(setting.to_s)
datetime = Date._parse(setting.to_s).values_at(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday)
if datetime == nil
RTFError.fire("Invalid document creation date/time information "\
"specified.")
Expand Down

0 comments on commit 8801d64

Please sign in to comment.