Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix xlsx datetimes #104

Merged
merged 4 commits into from
Mar 27, 2014
Merged

Fix xlsx datetimes #104

merged 4 commits into from
Mar 27, 2014

Conversation

jrmyward
Copy link

@jrmyward jrmyward commented Feb 3, 2014

This fixes issue #103.

The failures were specific to xlsx format spreadsheets. When setting the date time to a string format, we need to round to the nearest second.

Jeremy Ward added 4 commits February 3, 2014 09:50
The failures were specific to xlsx format spreadsheets. When setting the date time to a string format, we need to round to the nearest second.
When supplying a date time string with seconds (11/5/2013 11:45:00), the resulting DateTime object would not round the fractional seconds resulting in a time string of 11/5/2013 11:44:59. 

Time is now properly rounded before returning the DateTime object.
@jmccartie
Copy link

+1 Fixes my problem

Before:
2011-01-09 09:32 converts to "2011-01-09 09:31:59"

After:
2011-01-09 09:32 converts to "2011-01-09 09:32:00"

Empact added a commit that referenced this pull request Mar 27, 2014
@Empact Empact merged commit ad0e2d6 into roo-rb:master Mar 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants