Merge tag 'iio-for-3.17b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23...
[linux-2.6-microblaze.git] / drivers / rtc / rtc-efi.c
index 797aa02..c4c3843 100644 (file)
@@ -35,7 +35,7 @@ static inline int
 compute_yday(efi_time_t *eft)
 {
        /* efi_time_t.month is in the [1-12] so, we need -1 */
-       return rtc_year_days(eft->day - 1, eft->month - 1, eft->year);
+       return rtc_year_days(eft->day, eft->month - 1, eft->year);
 }
 /*
  * returns day of the week [0-6] 0=Sunday