Support timedelta in CSV import/export
issue9220 review297531002
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
* Format timedelta in CSV export
|
||||
* Manage symbol widget
|
||||
* Fallback to model name as title
|
||||
* Set treeview footer sticky on bottom
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user