How can I retrieve a person's time zone setting in their mail file?

Hi there!

I have a custom built contact management system that connects to the person’s personal mail file and creates calendar entries. However, I need to retrieve the person’s time zone setting in their mail file so that the calendar item is slotted in the right place because my users can be anywhere. However, I cannot find where the time zone setting is stored. Can anyone help?

Thanks!

Gérald

Subject: How can I retrieve a person’s time zone setting in their mail file?

I don’t think it is stored in the mail file, or anywhere else in Notes for that matter. The Notes client takes its time zone from the computer it’s running on. If you switch your computer’s time zone, Notes would adjust automatically. You’d need to create a new field for this.

Subject: How can I retrieve a person’s time zone setting in their mail file?

TimeZone settings are stored in the user’s location document. You should be able to get a handle to it from script. (Advance tab - you can choose to use the OS or notes timezone settings)

There is also a TimeZone property in script but this is more relative to a NotesDateTime object.

This should get you started:

Function getLocation() As String

'get current location and return

currentLocation = s.GetEnvironmentString(“Location”, True)

myPos = InStr(1, currentLocation, “,”, 1)

getLocation = Left(currentLocation, myPos - 1)

End Function

Subject: RE: How can I retrieve a person’s time zone setting in their mail file?

I also just discovered an undocumented @command:

@LocationGetInfo([

I am not sure of all the parameters but it might help.