Ever since the daylight savings time ended (10/28/07), my scheduled agent is returning a time that is 2 days into the future for current time. This only happens when the agent is scheduled, it returns the correct time when I run it manually. Here is a stripped down copy of the code just to test the LCDateTime:=================================
Sub Initialize
Dim agentLog As New NotesLog("Agent log")
Call agentLog.OpenAgentLog
Dim clock As New LCDateTime
clock.SetCurrent
Messagebox clock.Text
Call agentLog.LogAction(clock.text)
Call agentLog.Close
End Sub
This what is logged:
=======================
Started running agent ‘check clock’ on 11/13/2007 11:40:42 AM
Running on new or modified documents: 153 total
Found 153 document(s) that match search criteria
11/13/2007 11:40:42 AM: 11/15/2007 01:40:42.55 AM
Ran LotusScript code
Done running agent ‘check clock’ on 11/13/2007 11:40:42 AM
===========================
We moved from AS400 platform to Windows NT recently, and I believe it returns the right time prior to 10/28/07. If you have any idea how to fix this, please let me know. Thank you.