You've already forked CEF4Delphi
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:
@ -581,10 +581,10 @@ begin
|
|||||||
|
|
||||||
Result.year := min(9999, max(1, Result.year));
|
Result.year := min(9999, max(1, Result.year));
|
||||||
Result.month := min(12, max(1, Result.month));
|
Result.month := min(12, max(1, Result.month));
|
||||||
Result.hour := min(23, max(1, Result.hour));
|
Result.hour := min(23, max(0, Result.hour));
|
||||||
Result.minute := min(59, max(1, Result.minute));
|
Result.minute := min(59, max(0, Result.minute));
|
||||||
Result.second := min(59, max(1, Result.second));
|
Result.second := min(59, max(0, Result.second));
|
||||||
Result.millisecond := min(999, max(1, Result.millisecond));
|
Result.millisecond := min(999, max(0, Result.millisecond));
|
||||||
|
|
||||||
DayTable := @MonthDays[IsLeapYear(Result.year)];
|
DayTable := @MonthDays[IsLeapYear(Result.year)];
|
||||||
Result.day_of_month := min(DayTable^[Result.month], max(1, Result.day_of_month));
|
Result.day_of_month := min(DayTable^[Result.month], max(1, Result.day_of_month));
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"UpdateLazPackages" : [
|
"UpdateLazPackages" : [
|
||||||
{
|
{
|
||||||
"ForceNotify" : true,
|
"ForceNotify" : true,
|
||||||
"InternalVersion" : 233,
|
"InternalVersion" : 234,
|
||||||
"Name" : "cef4delphi_lazarus.lpk",
|
"Name" : "cef4delphi_lazarus.lpk",
|
||||||
"Version" : "87.1.13.0"
|
"Version" : "87.1.13.0"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user