diff options
author | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2019-02-21 15:02:26 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-02-27 11:07:11 +0000 |
commit | b47c633c31a935a73e4d88d45437682e7b10310f (patch) | |
tree | 4a1c1d5400c2cdee5290bdede790a9c8b389a653 /src/ec | |
parent | ec645cb086883f8bf147cce584d2fe31536a9537 (diff) |
rtc: Fix rtc_calc_weekday
This function appeared previously unused (called only from rtc_display, also unused),
but it returned an incorrect weekday. Change the algorithm to use Zeller's Rule, a
well-known algorithm for calculuating weekdays.
Change-Id: Ibce6822942f8d9d9f39c2b6065cd785dca9e8e09
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-on: https://review.coreboot.org/c/31557
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/ec')
0 files changed, 0 insertions, 0 deletions