Skip to content

Commit

Permalink
Addresses #459 (#460)
Browse files Browse the repository at this point in the history
Addresses #459
  • Loading branch information
hecon5 authored Nov 16, 2023
1 parent 2a183df commit 3ad141c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Version Control.accda.src/dbs-properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"Type": 10
},
"AppVersion": {
"Value": "4.0.27",
"Value": "4.0.28",
"Type": 10
},
"Auto Compact": {
Expand Down
8 changes: 8 additions & 0 deletions Version Control.accda.src/modules/clsDbProperty.cls
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ Private Sub IDbComponent_Import(strFile As String)
Next prp

' Read properties from source file
' We don't want to parse the dates here, so turning them off for this operation only.
' See issue #459 for additional details.
JsonOptions.ConvertDateToIso = False
Set dImport = ReadJsonFile(strFile)
JsonOptions.ConvertDateToIso = True
If Not dImport Is Nothing Then
Set dItems = dImport("Items")
For Each varKey In dItems.Keys
Expand Down Expand Up @@ -188,7 +192,11 @@ Private Sub IDbComponent_Merge(strFile As String)

' Remove any document properties that don't exist in the incoming file,
' then import the file.
' We don't want to parse the dates here, so turning them off for this operation only.
' See issue #459 for additional details.
JsonOptions.ConvertDateToIso = False
Set dFile = ReadJsonFile(strFile)
JsonOptions.ConvertDateToIso = True
If dFile Is Nothing Then Set dFile = New Dictionary
RemoveMissing dFile("Items"), GetDictionary

Expand Down

0 comments on commit 3ad141c

Please sign in to comment.