Skip to content

Excel dates imported as java.util.Date, not OpenRefine date #1908

Description

@dcabo

Describe the bug
Date columns from Excel files are imported as text into Refine.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new project using an Excel file with dates in it, e.g. the one attached below.
  2. The configuration screen for project creation will show the date column in black. Create the project anyway to try to convert it later on.
  3. The date is read correctly from the Excel file (December 11th, 2018), but displayed in black, not green, i.e. not recognised as date.
  4. Apply Common Transforms > To Date to the "Date" column. The date is still stored as text. See screenshot below.

Current Results
What results occured or were shown.

Expected behavior
A clear and concise description of what you expected to happen or to show.

Screenshots
screenshot 2018-12-15 at 01 15 52

Desktop (please complete the following information):

  • OS: macOS Mojave
  • Browser Version: Safari 12.02
  • JRE or JDK Version: 1.8.0_181

OpenRefine (please complete the following information):

Datasets
Minimal file: Date test.xlsx

Additional context
This same file worked fine in Refine 2.8.

Metadata

Metadata

Assignees

Labels

Difficulty: IntermediateIdentifies moderately challenging issues that require some experience and familiarity with project.Priority: HighDenotes issues that require urgent attention and may be blocking progress.Type: BugIssues related to software defects or unexpected behavior, which require resolution.XLS(X)About the Excel import / export functionalityimportAbout importers in general - add a label for the data format if available

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions