-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace use of Duration
for timestamps with an actual timestamp, e.g. chrono::DateTime
#4729
Comments
Can I work on this issue? |
Hi @hollermay, feel free to open a PR. |
@hollermay should I assign you? |
Sure I can give a shot |
also do the same for |
This comment was marked as resolved.
This comment was marked as resolved.
|
No, it's still valid |
In some places in
iroha_data_model
, structures useDuration
for data which doesn't mean a span of time, but actually means a timestamp. Examples:start
: https://github.com/hyperledger/iroha/blob/4362c9427fa8b4090676ac46e8171ef5f1995ff6/data_model/src/events/time.rs#L100-L105since
: https://github.com/hyperledger/iroha/blob/4362c9427fa8b4090676ac46e8171ef5f1995ff6/data_model/src/events/time.rs#L126-L131These fields are timestamps, not time spans.
I propose to use a structure that is designed specifically for timestamps, e.g.
chrono::DateTime
.The text was updated successfully, but these errors were encountered: