(stamp: &prost_types::Timestamp)
| 26 | } |
| 27 | |
| 28 | pub fn timestamp_domain(stamp: &prost_types::Timestamp) -> chrono::DateTime<chrono::Utc> { |
| 29 | chrono::DateTime::from_timestamp(stamp.seconds, stamp.nanos.max(0) as u32) |
| 30 | .unwrap_or_else(chrono::Utc::now) |
| 31 | } |
| 32 | |
| 33 | /// Native attribute-only changes remain MODIFIED for existing wire clients; |
| 34 | /// the optional diagnostic preserves the subtype for native CLI rendering. |
nothing calls this directly
no outgoing calls
no test coverage detected