IsDST and ConvertToZone

Does the IsDST variable in the ConvertToZone method for the localtime or for the zonetime?

I have a test agent that seems to indicate that its for the local time.

My local time zone is ZE10.

The 1st DateTime in ZE10 is not within the DST date range, as the 2nd DateTime in ZE10 is within the DST date range.

Example below with my comments of the results.

Sub Initialize

Dim sessCurr As NotesSession

Dim ndtImpDateTime As NotesDateTime

Dim iImpZone As Integer



Set sessCurr = New NotesSession



iImpZone = 6



Set ndtImpDateTime = sessCurr.CreateDateTime("27/05/2007 11:00:00 AM CST")

Call ndtImpDateTime.ConvertToZone(iImpZone, False)



' -- IsDST remains as False



Call ndtImpDateTime.ConvertToZone(iImpZone, True)



' -- IsDST remains as False



Set ndtImpDateTime = sessCurr.CreateDateTime("27/01/2007 11:00:00 AM CST")

Call ndtImpDateTime.ConvertToZone(iImpZone, False)



' -- IsDST remains as False



Call ndtImpDateTime.ConvertToZone(iImpZone, True)



' -- IsDST changes to True. WHY???

End Sub

Based on this, if I am trying to work out the time from a different time zone to another time zone other than my local time zone, I may have to adjust the time with AdjustHour and always use ‘False’ for IsDST.

Can anyone shed any light on this?