Hi,
I have a scheduled agent which runs 2AM every day. Within the agent, there is trigger to send nitification whenever the day is the FIRST day of the month. Code snippet is below:
sendMemo = False
Set dtTarget = New NotesDateTime(Datevalue(Today))
dayofmon% = Day(dtTarget.DateOnly)
If dayofmon% = 1 Then sendMemo = True
if sendMemo then
//call send memo routine
end if
The agent works fine before. But problem happens after a replica is built on a INDIA server. The problem: no memo is sent even the running day is the first day of the month.
BTW, I configurated agents on replicas to make it run on USA server ONLY. Does the time zone cause this problem. I am confused…
thanks for help!