func NewDebitCert(draftid string, draft *document.Draft) (*document.DebitCert, error) {
cert := new(document.DebitCert)
cert.Holder = draft.Drawer
- cert.Date = time.Seconds()
+ cert.Date = time.Now().Unix()
cert.Denomination = "epoint"
cert.Issuer = draft.Issuer
cert.AuthorizedBy = draft.AuthorizedBy
cert := new(document.CreditCert)
// TODO: get from old cert instead?
cert.Holder = dcert.Beneficiary
- cert.Date = time.Seconds()
+ cert.Date = time.Now().Unix()
// TODO: get these from the cert holder pubkey
cert.Denomination = "epoint"
cert.Issuer = draft.Issuer