Skip to content

Unable to import date/time values #5057

@seancolsen

Description

@seancolsen

Steps to reproduce

  1. From the Schema Page, choose "New Table" > "From Data Import"

  2. Select "Copy and Paste Text"

  3. Paste the following and proceed:

    date
    2000-01-01 12:00:00
    
  4. Expect to see a preview of your data to be imported.

  5. Instead, observe the error:

    Unable to tabulate data

    Image

Notes

  • I've tried the following date/time formats, all with the same error:

    • (A): 2000-01-01 12:00:00
    • (B): 2000-01-01T12:00:00
    • (C): 2000-01-01T12:00:00.0Z AD
    • (D): 2000-01-01T12:00
    • (E): 01/01/2000 12:00 pm
    • (F): 01/01/2000 12:00

    Note that format (C) is what Mathesar uses when exporting from a Date & Time column. That would seem to demonstrate that users cannot import what they export, which seems especially problematic. to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    readyReady for implementationrestricted: maintainersOnly maintainers can resolve this issuetype: bugwork: backendRelated to Python, Django, and simple SQL

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions