diff options
Diffstat (limited to 'crates/core/c8y_api/src')
-rw-r--r-- | crates/core/c8y_api/src/http_proxy.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/core/c8y_api/src/http_proxy.rs b/crates/core/c8y_api/src/http_proxy.rs index b9f78e32..3d1288d6 100644 --- a/crates/core/c8y_api/src/http_proxy.rs +++ b/crates/core/c8y_api/src/http_proxy.rs @@ -283,7 +283,7 @@ impl JwtAuthHttpProxy { C8yCreateEvent::new( Some(c8y_managed_object), event_type.clone(), - event_time.unwrap_or(OffsetDateTime::now_utc()), + event_time.unwrap_or_else(OffsetDateTime::now_utc), event_text.unwrap_or(event_type), HashMap::new(), ) |