# File lib/mail/fields/date_field.rb, line 34
34: def initialize(value = nil, charset = 'utf-8')
35: self.charset = charset
36: if value.blank?
37: value = Time.now.strftime('%a, %d %b %Y %H:%M:%S %z')
38: else
39: value = strip_field(FIELD_NAME, value)
40: value.to_s.gsub!(/\(.*?\)/, '')
41: value = ::DateTime.parse(value.to_s.squeeze(" ")).strftime('%a, %d %b %Y %H:%M:%S %z')
42: end
43: super(CAPITALIZED_FIELD, value, charset)
44: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.