2.4.6.4 MS DateParse in LicenseDate
This commit is contained in:
parent
2facc47a4b
commit
5b1d07d98b
@ -5,6 +5,7 @@ Imports DigitalData.Modules.EDMI.API
|
|||||||
Imports DigitalData.Modules.EDMI.API.DatabaseWithFallback
|
Imports DigitalData.Modules.EDMI.API.DatabaseWithFallback
|
||||||
Imports DigitalData.Modules.EDMI.API.Constants
|
Imports DigitalData.Modules.EDMI.API.Constants
|
||||||
Imports DigitalData.Modules.Database
|
Imports DigitalData.Modules.Database
|
||||||
|
Imports System.Windows.Forms.VisualStyles.VisualStyleElement
|
||||||
|
|
||||||
Public Class ClassInit
|
Public Class ClassInit
|
||||||
Public _lizenzManager As ClassLicenseManager
|
Public _lizenzManager As ClassLicenseManager
|
||||||
@ -239,7 +240,21 @@ Public Class ClassInit
|
|||||||
If split.Length >= 2 Then
|
If split.Length >= 2 Then
|
||||||
LICENSE_VALID = True
|
LICENSE_VALID = True
|
||||||
End If
|
End If
|
||||||
Dim oLICDATE = CDate(split(1))
|
Dim oLICDATE As Date
|
||||||
|
Try
|
||||||
|
oLICDATE = CDate(split(1))
|
||||||
|
Catch ex As Exception
|
||||||
|
LOGGER.Warn($"Error Converting Value {split(1)} to DATE")
|
||||||
|
Try
|
||||||
|
Dim expenddt As Date = Date.ParseExact(split(1), "dd.MM.yyyy", System.Globalization.DateTimeFormatInfo.InvariantInfo)
|
||||||
|
oLICDATE = expenddt
|
||||||
|
Catch ex1 As Exception
|
||||||
|
LOGGER.Warn($"Second Error Converting DATE with ParseExact - Setting Date = Today")
|
||||||
|
oLICDATE = Now.Date
|
||||||
|
End Try
|
||||||
|
|
||||||
|
End Try
|
||||||
|
|
||||||
If oLICDATE < CDate(Now) Then
|
If oLICDATE < CDate(Now) Then
|
||||||
MsgBox("Your license has expired!" & vbNewLine & "Last valid date: " & split(1) & vbNewLine & "Please contact Your sysadmin", MsgBoxStyle.Exclamation)
|
MsgBox("Your license has expired!" & vbNewLine & "Last valid date: " & split(1) & vbNewLine & "Please contact Your sysadmin", MsgBoxStyle.Exclamation)
|
||||||
LICENSE_EXPIRED = True
|
LICENSE_EXPIRED = True
|
||||||
|
|||||||
@ -32,6 +32,6 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.4.6.3")>
|
<Assembly: AssemblyVersion("2.4.6.4")>
|
||||||
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
||||||
<Assembly: NeutralResourcesLanguage("")>
|
<Assembly: NeutralResourcesLanguage("")>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user