Skip to content

Commit

Permalink
Verify consistent naming and byref passing of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
hecon5 committed Nov 15, 2023
1 parent 732f4e5 commit 500b891
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Version Control.accda.src/modules/modUtcConverter.bas
Original file line number Diff line number Diff line change
Expand Up @@ -812,16 +812,16 @@ End Function
' Purpose : Attempt a higher performance conversion first, then fall back to RegEx.
'---------------------------------------------------------------------------------------
'
Private Function ConvTimeUTC(ByVal InVal As String) As Date
Private Function ConvTimeUTC(ByRef InVal As String) As Date

Dim varParts As Variant
Dim SecondsInPart As String
Dim InValSeconds As String

If InVal Like "##:##:##.###Z" Then
' Use high-performance conversion to date
varParts = Split(InVal, ":")
SecondsInPart = Mid(varParts(2), 1, Len(varParts(2)) - 1)
ConvTimeUTC = TimeSerialDbl(varParts(0), varParts(1), SecondsInPart)
InValSeconds = Mid(varParts(2), 1, Len(varParts(2)) - 1)
ConvTimeUTC = TimeSerialDbl(varParts(0), varParts(1), InValSeconds)
Else
' Fall back to slower RegEx function
ConvTimeUTC = ConvTimeUTC2(InVal)
Expand Down

0 comments on commit 500b891

Please sign in to comment.