Support timedelta in CSV import/export

issue9220
review297531002
This commit is contained in:
Cédric Krier
2020-10-11 19:04:16 +02:00
parent 0c3c4a762d
commit 0f1cce5893
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
* Format timedelta in CSV export
* Manage symbol widget
* Fallback to model name as title
* Set treeview footer sticky on bottom
+5
View File
@@ -1964,10 +1964,15 @@
Sao.common.moment_format('%X'));
} else if (val.isDate) {
val = val.format(Sao.common.date_format());
} else if (val.isTimeDelta) {
val = Sao.common.timedelta.format(
val, {'s': 1, 'm': 60, 'h': 60 * 60});
} else if (!isNaN(Number(val))) {
val = val.toLocaleString(
Sao.i18n.BC47(Sao.i18n.getlang()));
}
} else if (val.isTimeDelta) {
val = val.asSeconds();
} else if (typeof(val) == 'boolean') {
val += 0;
}