Skip to content

Commit

Permalink
Turn on date ISO conversion before reading index
Browse files Browse the repository at this point in the history
These dates need to be converted to local dates for internal processing. joyfullservice#459
  • Loading branch information
joyfullservice committed Nov 17, 2023
1 parent b1bf7bd commit 5009bdc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Version Control.accda.src/modules/clsVCSIndex.cls
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Public Sub LoadFromFile(Optional strFile As String)
Dim dFile As Dictionary
Dim dItem As Dictionary
Dim varKey As Variant
Dim blnSavedValue As Boolean

' Exit if we have disabled the index functionality
If Me.Disabled Then Exit Sub
Expand All @@ -70,7 +71,11 @@ Public Sub LoadFromFile(Optional strFile As String)
m_strFile = strFile
If m_strFile = vbNullString Then m_strFile = DefaultFilePath
If FSO.FileExists(m_strFile) Then
' Convert dates back to local time for processing
blnSavedValue = JsonOptions.ConvertDateToIso
JsonOptions.ConvertDateToIso = True
Set dFile = ReadJsonFile(m_strFile)
JsonOptions.ConvertDateToIso = blnSavedValue
If Not dFile Is Nothing Then
If dFile.Exists("Items") Then
' Load properties from class
Expand Down

0 comments on commit 5009bdc

Please sign in to comment.