This commit is contained in:
Timur Gordon
2025-10-29 16:52:33 +01:00
parent 03e5615541
commit 87c556df7a
76 changed files with 10186 additions and 47 deletions

View File

@@ -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,