diff options
Diffstat (limited to 'karlgui/src/helper.rs')
-rw-r--r-- | karlgui/src/helper.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/karlgui/src/helper.rs b/karlgui/src/helper.rs index 0192173..4acb9f3 100644 --- a/karlgui/src/helper.rs +++ b/karlgui/src/helper.rs @@ -3,7 +3,7 @@ use egui::{DragValue, Ui}; use karlcommon::Property; pub fn from_timestamp(t: i64) -> NaiveDateTime { - NaiveDateTime::from_timestamp(t, 0) + NaiveDateTime::from_timestamp_opt(t, 0).unwrap() } pub fn format_value(prop: Property, value: i64) -> String { |