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

Error parsing a ISO-8601 Date format from a CSV import file #19

Open
dbeaugrand opened this issue Apr 28, 2021 · 1 comment
Open

Error parsing a ISO-8601 Date format from a CSV import file #19

dbeaugrand opened this issue Apr 28, 2021 · 1 comment

Comments

@dbeaugrand
Copy link

I have a CSV file with this format:
datetime,temperature,humidity,pressure,carbon_dioxide,oxygen
2021-12-25T00:58:18Z,21,60,101.3,409.9,20
2021-12-25T00:58:19Z,21.05,60.1,101.6,410.3,20

I have defined the datetime (column 1) as a date type and a format of YYYY-MM-DDTHH:MM:SSZ. But it appears that the simulator is failing parsing this format. Is this an issue or is there a different way to define the datetime format for ISO-8601?

Error from log
2021-04-28 13:01:37Vehicle Simulationjava.lang.IllegalArgumentException: Illegal pattern character 'T'

Thanks for you help

@picobas
Copy link

picobas commented Oct 19, 2021

Try using the following format: yyyy-MM-dd'T'HH:mm:ssXXX

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

No branches or pull requests

2 participants