mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
fix hour graph not handling timezones west of UTC
https://forums.ankiweb.net/t/statistics-bugs-after-update-2-1-5-to-2-1-29/1620
This commit is contained in:
parent
02424ac789
commit
469272659f
2 changed files with 2 additions and 2 deletions
|
@ -996,7 +996,7 @@ message GraphsOut {
|
||||||
uint32 next_day_at_secs = 4;
|
uint32 next_day_at_secs = 4;
|
||||||
uint32 scheduler_version = 5;
|
uint32 scheduler_version = 5;
|
||||||
/// Seconds to add to UTC timestamps to get local time.
|
/// Seconds to add to UTC timestamps to get local time.
|
||||||
uint32 local_offset_secs = 7;
|
int32 local_offset_secs = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
message RevlogEntry {
|
message RevlogEntry {
|
||||||
|
|
|
@ -41,7 +41,7 @@ impl Collection {
|
||||||
days_elapsed: timing.days_elapsed,
|
days_elapsed: timing.days_elapsed,
|
||||||
next_day_at_secs: timing.next_day_at as u32,
|
next_day_at_secs: timing.next_day_at as u32,
|
||||||
scheduler_version: self.sched_ver() as u32,
|
scheduler_version: self.sched_ver() as u32,
|
||||||
local_offset_secs: local_offset_secs as u32,
|
local_offset_secs: local_offset_secs as i32,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue