iee1275/datetime: Fix off-by-1 error.

This commit is contained in:
Vladimir Serbinenko 2016-01-07 15:53:42 +01:00
parent 716c9f2675
commit 607d66116a

View file

@ -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;