Skip to content

Commit

Permalink
NewYear: Fix off-by-one in display schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
fenhl committed Jan 5, 2025
1 parent 3dc6357 commit 737dbbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl Mode {
Self::NewYear => {
let timezone = current_event?.timezone;
let now = Utc::now().with_timezone(&timezone);
if now.month() == 1 && now.day() == 1 && now.hour() == 1 {
if now.month() == 1 && now.day() == 1 && now.hour() == 0 {
Some(Priority::Programm)
} else {
let tomorrow = now.date_naive().succ_opt().expect("date overflow");
Expand Down

0 comments on commit 737dbbf

Please sign in to comment.