mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
set local offset when saving preferences
This commit is contained in:
parent
ce49ca9401
commit
e56f83be84
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue