Skip to content

Commit

Permalink
fixed summer/winter time conversion error
Browse files Browse the repository at this point in the history
Resolves #1306
  • Loading branch information
CommanderStorm committed Jul 15, 2024
1 parent 93cad0a commit 63b7675
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions server/main-api/src/calendar/models.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::fmt::Display;

use chrono::{DateTime, Utc};
use chrono::{DateTime, Duration, Utc};
use serde::{Deserialize, Serialize};
use std::fmt::Display;

use crate::models::Location;

Expand Down Expand Up @@ -75,8 +74,8 @@ impl Event {
detailed_entry_type = EXCLUDED.detailed_entry_type"#,
self.id,
self.room_code,
self.start_at,
self.end_at,
self.start_at + Duration::hours(1),
self.end_at + Duration::hours(1),
self.stp_title_de,
self.stp_title_en,
self.stp_type,
Expand Down

0 comments on commit 63b7675

Please sign in to comment.