wip
This commit is contained in:
@@ -56,7 +56,7 @@ impl Event {
|
||||
pub fn new(ns: String, title: impl ToString) -> Self {
|
||||
let now = OffsetDateTime::now_utc();
|
||||
Self {
|
||||
base_data: BaseData::new(ns),
|
||||
base_data: BaseData::with_ns(ns),
|
||||
title: title.to_string(),
|
||||
description: None,
|
||||
start_time: now,
|
||||
@@ -71,8 +71,9 @@ impl Event {
|
||||
/// Create an event with specific ID
|
||||
pub fn with_id(id: String, ns: String, title: impl ToString) -> Self {
|
||||
let now = OffsetDateTime::now_utc();
|
||||
let id_u32 = id.parse::<u32>().unwrap_or(0);
|
||||
Self {
|
||||
base_data: BaseData::with_id(id, ns),
|
||||
base_data: BaseData::with_id(id_u32, ns),
|
||||
title: title.to_string(),
|
||||
description: None,
|
||||
start_time: now,
|
||||
|
||||
Reference in New Issue
Block a user