Missing parent insertion of value for Time and TimeDelta
In Sao.rpc.prepareObject if a parent is passed, the result value must be in the parent.
This commit is contained in:
1 parent
c503c6d508
commit
b94c5533a9
1 file changed
+6
@@ -203,11 +203,17 @@
|
||||
'second': value.second(),
|
||||
'microsecond': value.millisecond() * 1000
|
||||
};
|
||||
if (parent) {
|
||||
parent[index] = value;
|
||||
}
|
||||
} else if (value.isTimeDelta) {
|
||||
value = {
|
||||
'__class__': 'timedelta',
|
||||
'seconds': value.asSeconds()
|
||||
};
|
||||
if (parent) {
|
||||
parent[index] = value;
|
||||
}
|
||||
} else if (value instanceof Sao.Decimal) {
|
||||
value = {
|
||||
'__class__': 'Decimal',
|
||||
|
||||
Reference in new issue
Block a user