 |
 |
| Domino Tips: |
|
 |
 |

DATABASE
Resource.Nsf ( Resrc45.Ntf) Rooms Always Busy?
Andreas Hauge 07.11.2000
Rating: --- (out of 5)




If your rooms always report busy, even when you know that they are not, try this!
Code
I found that my problem was caused by the difference between NotesTimedate.LSLocaltime and NotesTimeDate.Localtime properties. It might be a logical error made by the developer. My server's time settings are Norwegian: dd.mm.yy hh:mm:ss. In the AutoProcessReservations agent in the resource database, there is a function (Function CheckProfileTimes) checking requested date - time period against the settings for that resource (room). Here is a part of that function: . . . If (Hour(dtRequestStart.LSLocalTime) > 0) Then Set dateItem1 = New NotesDateTime(dtRequestStart.LSlocaltime) Else Set dateItem1 = New NotesDateTime(dtRequestStart.DateOnly & " 00:00:01") End If If (Hour(dtrequestEnd) > 0) Then Set dateItem2 = New NotesDateTime(dtRequestEnd.LSLocalTime) Else Set dateItem2 = New NotesDateTime(dtRequestEnd.DateOnly & " 00:00:01") End If . . . As the New NotesDateTime only accepts the time format mm/dd/YY, the above will give an wrong date. 11.07.00, as the Norwegian time format, is the 11th of July -- but it becomes 07.11.00, which is the 7th of November!!! Changing the script a little, using the localtime properties instead for LSLocaltime, helps. Change: dtRequestStart.LSlocaltime =>dtRequestStart.localtime and dtRequestEnd.LSLocalTime => dtRequestEnd.LocalTime My AutoProcessReservations agent now seems to be working fine. I'm going to report this to Lotus Development/Iris.
 |

|
Rate this Tip
|
To rate tips, you must be a member of SearchDomino.com. Register now
to start rating these tips. Log in if you are already a member.
|


');
// -->
DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.
|
 |
|
|
 |
|
 |
 |
 |
 |
| TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of . |
|
| |
All Rights Reserved, , TechTarget |
|
|
|
|
|