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:
Damien Elmes 2020-07-31 12:29:08 +10:00
parent 02424ac789
commit 469272659f
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

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