cnogee Absent Member.
Absent Member.
2955 views

Appointment TimeZone

When creating and editing Appointments in the GroupWise client, in the Actions menu there is an option to "Select Time Zone". Was wondering if there was a way for Object API to get and set this field? I see in gwobjenu.pdf there is a method getDateAdjustment() that returns 0 and an object GWTimeZone not found in the gwoapi.h files, neither of which seem to help me.
Labels (1)
0 Likes
7 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Appointment TimeZone

Have you looked at the 8.0 version of the ObjectAPI?
The different versions of the gwoapi.h header files
can be reached at:
ftp://ftp.novell.com/outgoing/gwoapi_h.zip

Preston

>>> On Tuesday, September 08, 2009 at 2:46 PM,

cnogee<cnogee@no-mx.forums.novell.com> wrote:

> When creating and editing Appointments in the GroupWise client, in the
> Actions menu there is an option to "Select Time Zone". Was wondering if
> there was a way for Object API to get and set this field? I see in
> gwobjenu.pdf there is a method getDateAdjustment() that returns 0 and an
> object GWTimeZone not found in the gwoapi.h files, neither of which seem
> to help me.

0 Likes
cnogee Absent Member.
Absent Member.

Re: Appointment TimeZone

I have not seen those yet. Why are they not with the other ObjectAPI files?
File Downloads - Developer Community

From looking at the 800 and 801 header files, it looks like I can retrieve the GWTimeZone for the Account, but not for individual appointments. Or did I misread something?

Preston Stephenson;1854005 wrote:
Have you looked at the 8.0 version of the ObjectAPI?
The different versions of the gwoapi.h header files
can be reached at:
ftp://ftp.novell.com/outgoing/gwoapi_h.zip
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Appointment TimeZone

I'm having problems getting the new files
copied in. I'm still working on that.

The way I understand timezones on the ObjectAPI
is:
You get / update the timezone for the account.
That timezone is used in creating / sending
calendar items.
You use Appointment.GetTimezoneDelta() to get
the offset from the current timezone set in
the account. It also returns a timezone string
that represents the timezone used.

>>> On Monday, September 14, 2009 at 1:16 PM,

cnogee<cnogee@no-mx.forums.novell.com> wrote:

> I have not seen those yet. Why are they not with the other ObjectAPI
> files?
> 'File Downloads ‑ Developer Community'
>

(http://developer.novell.com/wiki/index.php/Special:Downloads/gwobjapi/build

> s/windows)
>
> From looking at the 800 and 801 header files, it looks like I can
> retrieve the GWTimeZone for the Account, but not for individual
> appointments. Or did I misread something?
>
> Preston Stephenson;1854005 Wrote:
>> Have you looked at the 8.0 version of the ObjectAPI?
>> The different versions of the gwoapi.h header files
>> can be reached at:
>> ftp://ftp.novell.com/outgoing/gwoapi_h.zip

0 Likes
cnogee Absent Member.
Absent Member.

Re: Appointment TimeZone

In addition to the .h files you listed, do you have a link for the .lib files? I was able to compile code for the new Account object, but not link it.

I did not see the function Appointment.GetTimezoneDelta() in the .h files. I did see Appointment.GetDateAdjustment() that I mentioned before, but it just returns 0s and blank strings in the pointer parameters.

Preston Stephenson;1856222 wrote:
I'm having problems getting the new files
copied in. I'm still working on that.

The way I understand timezones on the ObjectAPI
is:
You get / update the timezone for the account.
That timezone is used in creating / sending
calendar items.
You use Appointment.GetTimezoneDelta() to get
the offset from the current timezone set in
the account. It also returns a timezone string
that represents the timezone used.
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Appointment TimeZone

Sorry, it is Appointment.GetDateAdjustment().
If the timezone of the appointment is the
same as the computer, 0 will be returned.

The ObjectAPI is COM based, there is not
a library. You are probably not generating
the IID references. Are you correctly including
<initguid.h>?


>>> On Monday, September 21, 2009 at 11:26 AM,

cnogee<cnogee@no-mx.forums.novell.com> wrote:

> In addition to the .h files you listed, do you have a link for the .lib
> files? I was able to compile code for the new Account object, but not
> link it.
>
> I did not see the function Appointment.GetTimezoneDelta() in the .h
> files. I did see Appointment.GetDateAdjustment() that I mentioned
> before, but it just returns 0s and blank strings in the pointer
> parameters.
>
> Preston Stephenson;1856222 Wrote:
>> I'm having problems getting the new files
>> copied in. I'm still working on that.
>>
>> The way I understand timezones on the ObjectAPI
>> is:
>> You get / update the timezone for the account.
>> That timezone is used in creating / sending
>> calendar items.
>> You use Appointment.GetTimezoneDelta() to get
>> the offset from the current timezone set in
>> the account. It also returns a timezone string
>> that represents the timezone used.

0 Likes
cnogee Absent Member.
Absent Member.

Re: Appointment TimeZone

I want to thank you for the advice, we're now able to retrieve the timezone name using GetDateAdjustment() when creating appointments in different timezones. When modifying appointments to change their timezone however, the GW client and GetDateAdjustment() do not return the changed timezone but keep the original. Is that expected behavior?

Preston Stephenson;1860609 wrote:
Sorry, it is Appointment.GetDateAdjustment().
If the timezone of the appointment is the
same as the computer, 0 will be returned.

The ObjectAPI is COM based, there is not
a library. You are probably not generating
the IID references. Are you correctly including
<initguid.h>?
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Appointment TimeZone

There is not logic to change a timezone from the
original timezone used on the create, nor is there
plans to offer such logic.

>>> On Tuesday, October 27, 2009 at 8:56 AM,

cnogee<cnogee@no-mx.forums.novell.com>
wrote:

> I want to thank you for the advice, we're now able to retrieve the
> timezone name using GetDateAdjustment() when creating appointments in
> different timezones. When modifying appointments to change their
> timezone however, the GW client and GetDateAdjustment() do not return
> the changed timezone but keep the original. Is that expected behavior?
>
> Preston Stephenson;1860609 Wrote:
>> Sorry, it is Appointment.GetDateAdjustment().
>> If the timezone of the appointment is the
>> same as the computer, 0 will be returned.
>>
>> The ObjectAPI is COM based, there is not
>> a library. You are probably not generating
>> the IID references. Are you correctly including
>> <initguid.h>?

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.