1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-06-12 22:07:39 +02:00

Fixed the FixCefTime function

This commit is contained in:
Salvador Diaz Fau
2021-01-18 11:48:23 +01:00
parent 6ede7fa51a
commit 5de491ed03
2 changed files with 5 additions and 5 deletions

View File

@ -581,10 +581,10 @@ begin
Result.year := min(9999, max(1, Result.year));
Result.month := min(12, max(1, Result.month));
Result.hour := min(23, max(1, Result.hour));
Result.minute := min(59, max(1, Result.minute));
Result.second := min(59, max(1, Result.second));
Result.millisecond := min(999, max(1, Result.millisecond));
Result.hour := min(23, max(0, Result.hour));
Result.minute := min(59, max(0, Result.minute));
Result.second := min(59, max(0, Result.second));
Result.millisecond := min(999, max(0, Result.millisecond));
DayTable := @MonthDays[IsLeapYear(Result.year)];
Result.day_of_month := min(DayTable^[Result.month], max(1, Result.day_of_month));

View File

@ -2,7 +2,7 @@
"UpdateLazPackages" : [
{
"ForceNotify" : true,
"InternalVersion" : 233,
"InternalVersion" : 234,
"Name" : "cef4delphi_lazarus.lpk",
"Version" : "87.1.13.0"
}