set local offset when saving preferences
This commit is contained in:
parent
ce49ca9401
commit
e56f83be84
@ -9,6 +9,7 @@ use crate::{
|
||||
collection::Collection,
|
||||
err::Result,
|
||||
sched::cutoff::local_minutes_west_for_stamp,
|
||||
timestamp::TimestampSecs,
|
||||
};
|
||||
|
||||
impl Collection {
|
||||
@ -79,6 +80,10 @@ impl Collection {
|
||||
self.set_creation_mins_west(None)?;
|
||||
}
|
||||
|
||||
if s.scheduler_version != 1 {
|
||||
self.set_local_mins_west(local_minutes_west_for_stamp(TimestampSecs::now().0))?;
|
||||
}
|
||||
|
||||
// fixme: currently scheduler change unhandled
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user