Skip to content
Snippets Groups Projects
Commit 5a6d967c authored by Constantin P.'s avatar Constantin P. 💬
Browse files

Merge branch 'hotfix-13315' into 'master'

Hotfix 13315

See merge request !410
parents 22a006fb a5dc9541
1 merge request!410Hotfix 13315
......@@ -59,8 +59,9 @@ PyObject *wrapping_dap_chain_net_srv_vote_get_options(PyObject *self, void *clos
PyObject *wrapping_dap_chain_net_srv_vote_get_expire_datetime(PyObject *self, void *closure) {
(void)closure;
PyDateTime_IMPORT;
uint64_t l_ts_create = ((PyDapChainDatumObject*)self)->datum->header.ts_create / 1000000000;
PyObject *obj_ts_long = Py_BuildValue("(k)", l_ts_create);
PyDapChainNetSrvVoteInfoObject *l_info = (PyDapChainNetSrvVoteInfoObject*)self;
uint64_t l_ts_expire = l_info->info->expired;
PyObject *obj_ts_long = Py_BuildValue("(k)", l_ts_expire);
PyObject *obj_ts = PyDateTime_FromTimestamp(obj_ts_long);
return obj_ts;
}
......
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