mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 16:19:22 +00:00
* include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
after 29th of February.
This commit is contained in:
1 parent
d73ff15de4
commit
9576977eab
2 files changed
+6
-1
No files matched your search
@@ -1,3 +1,8 @@
|
|||||||
|
2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
|
||||||
|
aftert 29th of February.
|
||||||
|
|
||||||
2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Fix exfat endianness handling.
|
Fix exfat endianness handling.
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ grub_datetime2unixtime (const struct grub_datetime *datetime, grub_int32_t *nix)
|
|||||||
ret += ay * SECPERYEAR;
|
ret += ay * SECPERYEAR;
|
||||||
|
|
||||||
ret += monthssum[datetime->month - 1] * SECPERDAY;
|
ret += monthssum[datetime->month - 1] * SECPERDAY;
|
||||||
if (ay == 0 && datetime->month >= 3)
|
if (ay == 3 && datetime->month >= 3)
|
||||||
ret += SECPERDAY;
|
ret += SECPERDAY;
|
||||||
|
|
||||||
ret += (datetime->day - 1) * SECPERDAY;
|
ret += (datetime->day - 1) * SECPERDAY;
|
||||||
|
|||||||
Reference in new issue
Block a user