mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -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,
|
collection::Collection,
|
||||||
err::Result,
|
err::Result,
|
||||||
sched::cutoff::local_minutes_west_for_stamp,
|
sched::cutoff::local_minutes_west_for_stamp,
|
||||||
|
timestamp::TimestampSecs,
|
||||||
};
|
};
|
||||||
|
|
||||||
impl Collection {
|
impl Collection {
|
||||||
|
@ -79,6 +80,10 @@ impl Collection {
|
||||||
self.set_creation_mins_west(None)?;
|
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
|
// fixme: currently scheduler change unhandled
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue