set local offset when saving preferences

This commit is contained in:
Damien Elmes 2020-09-03 12:43:18 +10:00
parent ce49ca9401
commit e56f83be84

View File

@ -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(())
}