AutoIt
AutoIt
Transition from Cert.GetValidToDt to Cert.ValidToStr
Provides instructions for replacing deprecated GetValidToDt method calls with ValidToStr.Chilkat AutoIt Downloads
$oCert = ObjCreate("Chilkat.Cert")
; ------------------------------------------------------------------------
; The GetValidToDt method is deprecated:
Local $oCkdt1 = $oCert.GetValidToDt()
If ($oCert.LastMethodSuccess = False) Then
ConsoleWrite($oCert.LastErrorText & @CRLF)
Exit
EndIf
; ...
; ...
; ------------------------------------------------------------------------
; Do the equivalent using the ValidToStr property
$oCkdt2 = ObjCreate("Chilkat.CkDateTime")
$oCkdt2.SetFromRfc822($oCert.ValidToStr)