Skip to content
Snippets Groups Projects
Commit a69fb195 authored by esikkala's avatar esikkala
Browse files

Handle timespans with multiple values

parent 5e3182cd
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,12 @@ const ResultTableCell = props => {
let year;
let month;
let day;
/* TODO: remove this when data has been fixed
problematic example http://ldf.fi/mmm/time/production_229499
*/
if (Array.isArray(str)) {
str = str[0];
}
if (str.charAt(0) == '-') {
year = parseInt(str.substring(0,5));
month = parseInt(str.substring(7,8));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment