Skip to content

Date.parse used on timestamps, causing the time portion to be truncated #4

Description

@timcharper

If you create an excel spreadsheet (xls) from the following csv:

date,name,
Sun Dec 31 13:59:59 CET 2006,Boogie

Then load it with jruby-poi, and access the cell with the date, you will get a Date with "2006-12-31"

The problematic code is here:

https://github.com/kameeoze/jruby-poi/blob/master/lib/poi/workbook/cell.rb#L168

Changing Date.parse to Time.parse seems like a safe bet.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions