feat: Add --list-events debugging improvements and timezone support
- Remove debug event limit to display all events - Add timezone information to event listing output - Update DEVELOPMENT.md with latest changes and debugging cycle documentation - Enhance event parsing with timezone support - Simplify CalDAV client structure and error handling Changes improve debugging capabilities for CalDAV event retrieval and provide better timezone visibility when listing calendar events.
This commit is contained in:
parent
37e9bc2dc1
commit
f81022a16b
11 changed files with 2039 additions and 136 deletions
|
|
@ -77,6 +77,19 @@ pub struct SyncConfig {
|
|||
pub retry_delay: u64,
|
||||
/// Whether to delete events not found on server
|
||||
pub delete_missing: bool,
|
||||
/// Date range configuration
|
||||
pub date_range: DateRangeConfig,
|
||||
}
|
||||
|
||||
/// Date range configuration for event synchronization
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct DateRangeConfig {
|
||||
/// Number of days ahead to sync
|
||||
pub days_ahead: i64,
|
||||
/// Number of days in the past to sync
|
||||
pub days_back: i64,
|
||||
/// Whether to sync all events regardless of date
|
||||
pub sync_all_events: bool,
|
||||
}
|
||||
|
||||
impl Default for Config {
|
||||
|
|
@ -123,6 +136,17 @@ impl Default for SyncConfig {
|
|||
max_retries: 3,
|
||||
retry_delay: 5,
|
||||
delete_missing: false,
|
||||
date_range: DateRangeConfig::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for DateRangeConfig {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
days_ahead: 7, // Next week
|
||||
days_back: 0, // Today only
|
||||
sync_all_events: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue