wire types: use chrono DateTime<Utc> as the timestamp type throughout

This commit is contained in:
damocles 2026-07-03 20:54:33 +02:00 committed by mara
commit 2c5d9ed336
15 changed files with 108 additions and 190 deletions

View file

@ -805,7 +805,7 @@ impl Coordinator {
approval_kind,
sha_short,
status,
resolved_at: hive_sh4re::wire_time::WireTime(resolved_at),
resolved_at: hive_sh4re::wire_time::from_secs(resolved_at),
note,
description,
});
@ -838,8 +838,8 @@ impl Coordinator {
question: question.to_owned(),
options: options.to_vec(),
multi,
asked_at: hive_sh4re::wire_time::WireTime(asked_at),
deadline_at: deadline_at.map(hive_sh4re::wire_time::WireTime),
asked_at: hive_sh4re::wire_time::from_secs(asked_at),
deadline_at: deadline_at.map(hive_sh4re::wire_time::from_secs),
target: target.map(str::to_owned),
question_refs,
});
@ -869,7 +869,7 @@ impl Coordinator {
id,
answer: answer.to_owned(),
answerer: answerer.to_owned(),
answered_at: hive_sh4re::wire_time::WireTime(answered_at),
answered_at: hive_sh4re::wire_time::from_secs(answered_at),
cancelled,
target: target.map(str::to_owned),
answer_refs,