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

Data import will not accept properly formatted dates #15756

Open
1 task done
heyjoeway opened this issue Mar 17, 2025 · 2 comments
Open
1 task done

Data import will not accept properly formatted dates #15756

heyjoeway opened this issue Mar 17, 2025 · 2 comments
Labels
backend Involves some work on the backend bb-data-import-export Exporting/Importing of data bug Something isn't working date Relating to dates, e.g. Date Picker, formatting, etc env - production Bug found in production firestorm Data/Infra/Revenue Team internaldb Relating to Budibase InternalDB (CouchDB)

Comments

@heyjoeway
Copy link

heyjoeway commented Mar 17, 2025

Checklist

  • I have searched budibase discussions and github issues to check if my issue already exists

Hosting

  • Cloud
    • Tenant ID: nui34t9grn89vy

Describe the bug
When importing data to a new table and setting a field format to "Date", I receive an error that the formatting isn't correct even though it is:

Invalid format for field "Test": "2024-10-31T00:00:00Z". Datetime fields must be in ISO format, e.g. "YYYY-MM-DDTHH:MM:SSZ".

To Reproduce
Import a CSV to a new table with the following content:

Test,Test2
2024-10-31T00:00:00Z,1234

OR a JSON with the following content:

[
	{
		"Test": "2024-10-31T00:00:00Z",
		"Test2": "1234"
	}
]

Make sure that the "Test" field type is set to "Date".

Expected behavior
The data should import without error.

Screenshots
Image
Image

App Export
This is on a brand new app.

Desktop (please complete the following information):

  • OS: Windows 11 24H2 (26100.3476)
  • Browser: Chrome
  • Version: 134.0.6998.89

Additional context
N/A

@heyjoeway heyjoeway added the bug Something isn't working label Mar 17, 2025
Copy link

linear bot commented Mar 17, 2025

@heyjoeway
Copy link
Author

It seems like the message is misleading. Exporting an existing date from Budibase and reimporting does work, but the format is slightly different from what is indicated:

  • For dates, you can use ISO 2014 and simply leave out the time portion, eg. 2024-10-31
  • For times, you need to explicitly specify the decimal portion, eg. 2024-10.31T00:00:00.000Z

@mikesealey mikesealey added backend Involves some work on the backend bb-data-import-export Exporting/Importing of data date Relating to dates, e.g. Date Picker, formatting, etc env - production Bug found in production firestorm Data/Infra/Revenue Team internaldb Relating to Budibase InternalDB (CouchDB) labels Mar 20, 2025 — with Linear
@mikesealey mikesealey removed their assignment Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Involves some work on the backend bb-data-import-export Exporting/Importing of data bug Something isn't working date Relating to dates, e.g. Date Picker, formatting, etc env - production Bug found in production firestorm Data/Infra/Revenue Team internaldb Relating to Budibase InternalDB (CouchDB)
Projects
None yet
Development

No branches or pull requests

2 participants