diff --git a/ChangeLog b/ChangeLog index 86e9e83c3..92ba6cee4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-03-31 Vladimir Serbinenko + + * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days + aftert 29th of February. + 2012-03-31 Vladimir Serbinenko Fix exfat endianness handling. diff --git a/include/grub/datetime.h b/include/grub/datetime.h index 4accd9cbd..3a3b3d0c3 100644 --- a/include/grub/datetime.h +++ b/include/grub/datetime.h @@ -97,7 +97,7 @@ grub_datetime2unixtime (const struct grub_datetime *datetime, grub_int32_t *nix) ret += ay * SECPERYEAR; ret += monthssum[datetime->month - 1] * SECPERDAY; - if (ay == 0 && datetime->month >= 3) + if (ay == 3 && datetime->month >= 3) ret += SECPERDAY; ret += (datetime->day - 1) * SECPERDAY;