conformist icon indicating copy to clipboard operation
conformist copied to clipboard

Excel representation of date being returned instead of DateTime object (spreadsheet gem)

Open coatezy opened this issue 8 years ago • 0 comments

The spreadsheet gem converts Excel dates to a Date/DateTime object but this conversion does not get passed through to the conformist schema.

For example

spreadsheet.worksheet(0).row(1)
=> [1.0,
 Fri, 19 Mar 2010,
 Sat, 01 Sep 2001
]
enumerator.first
=> #<Conformist::HashStruct:0x007ffab9e75930
 @attributes=
  {:id=>1,
   :first_date=>40256.484375,
   :second_date=>37135.0}>

Is there a way of retaining the Date object?

coatezy avatar Sep 16 '15 10:09 coatezy