iee1275/datetime: Fix off-by-1 error.
This commit is contained in:
parent
716c9f2675
commit
607d66116a
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ grub_get_datetime (struct grub_datetime *datetime)
|
||||||
|
|
||||||
datetime->year = args.year;
|
datetime->year = args.year;
|
||||||
datetime->month = args.month;
|
datetime->month = args.month;
|
||||||
datetime->day = args.day;
|
datetime->day = args.day + 1;
|
||||||
datetime->hour = args.hour;
|
datetime->hour = args.hour;
|
||||||
datetime->minute = args.minute;
|
datetime->minute = args.minute;
|
||||||
datetime->second = args.second;
|
datetime->second = args.second;
|
||||||
|
@ -140,7 +140,7 @@ grub_set_datetime (struct grub_datetime *datetime)
|
||||||
|
|
||||||
args.year = datetime->year;
|
args.year = datetime->year;
|
||||||
args.month = datetime->month;
|
args.month = datetime->month;
|
||||||
args.day = datetime->day;
|
args.day = datetime->day - 1;
|
||||||
args.hour = datetime->hour;
|
args.hour = datetime->hour;
|
||||||
args.minute = datetime->minute;
|
args.minute = datetime->minute;
|
||||||
args.second = datetime->second;
|
args.second = datetime->second;
|
||||||
|
|
Loading…
Reference in a new issue