diff options
Diffstat (limited to 'drivers/rtc/rtc-efi.c')
-rw-r--r-- | drivers/rtc/rtc-efi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-efi.c b/drivers/rtc/rtc-efi.c index 797aa0252ba9..c4c38431012e 100644 --- a/drivers/rtc/rtc-efi.c +++ b/drivers/rtc/rtc-efi.c | |||
@@ -35,7 +35,7 @@ static inline int | |||
35 | compute_yday(efi_time_t *eft) | 35 | compute_yday(efi_time_t *eft) |
36 | { | 36 | { |
37 | /* efi_time_t.month is in the [1-12] so, we need -1 */ | 37 | /* efi_time_t.month is in the [1-12] so, we need -1 */ |
38 | return rtc_year_days(eft->day - 1, eft->month - 1, eft->year); | 38 | return rtc_year_days(eft->day, eft->month - 1, eft->year); |
39 | } | 39 | } |
40 | /* | 40 | /* |
41 | * returns day of the week [0-6] 0=Sunday | 41 | * returns day of the week [0-6] 0=Sunday |