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

Drag & Drop: date format is converted to string when present in file #65643

Open
supilee opened this issue Mar 30, 2023 · 4 comments
Open

Drag & Drop: date format is converted to string when present in file #65643

supilee opened this issue Mar 30, 2023 · 4 comments

Comments

@supilee
Copy link

supilee commented Mar 30, 2023

When adding a csv file containing a column with dates, the date is being converted into a string.
When using the transformation to convert the field type to time, the time and date are always the same and do not match the source file.

DnD-TimeSample.csv

Image

Image

@grafanabot
Copy link
Contributor

@supilee please add one or more appropriate labels. Here are some tips:

  • if you are making an issue, TODO, or reminder for yourself or your team, please add one label that best describes the product or feature area. Please also add the issue to your project board. 🚀

  • if you are making an issue for any other reason (docs typo, you found a bug, etc), please add at least one label that best describes the product or feature that you are discussing (e.g. area/alerting, datasource/loki, type/docs, type/bug, etc). Our issue triage doc also provides additional guidance on labeling. 🚀

Thank you! ❤️

@grafanabot grafanabot added the internal for issues made by grafanistas label Mar 30, 2023
@supilee supilee added type/bug area/panel/table and removed internal for issues made by grafanistas labels Mar 30, 2023
@ypnos
Copy link
Contributor

ypnos commented Mar 30, 2023

The "date" shown in the first table is a simple integer. Simple integers are interpreted as milliseconds since start of Unix epoch (1st of January, 1970 UTC). Due to your timezone this is 31st of December, 1969 at 4pm. So the field type conversion works as expected.

The question is, why is "2021-12-09" in the CSV converted to 44539?

@supilee
Copy link
Author

supilee commented Apr 5, 2023

Same behavior for 9.5.0

@clementinebuschtetz
Copy link

We are getting the same behavior for version 10.0.1 - any fix/update?

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

No branches or pull requests

5 participants