Home > Domino Tips > Administrator > Database > Resource.Nsf ( Resrc45.Ntf) Rooms Always Busy?
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

DATABASE

Resource.Nsf ( Resrc45.Ntf) Rooms Always Busy?


Andreas Hauge
07.11.2000
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


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.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Database
Quickly scan all databases on a Lotus Domino server
LotusScript code rebuilds corrupted busytime.nsf file
How to move Notes databases off Domino 8 servers and save disk space
Top 10 Lotus Notes/Domino administration tips of 2008
Batch file runs scheduled Lotus Notes database maintenance tasks
Fix and update Lotus Notes documents with limited access
Programmatically replace the design of Lotus Notes databases
Add a program doc to compact Lotus Notes databases automatically
More efficient local Lotus Notes database replication
Remove orphaned Lotus Notes documents on Domino databases with a 'virtual delete'

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

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.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
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 technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts