Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 943199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:23:52+00:00 2026-05-15T22:23:52+00:00

I am attempting to create Domino DateTime objects in arbitrary time zones using the

  • 0

I am attempting to create Domino DateTime objects in arbitrary time zones using the Lotus Java/CORBA classes.

I appear to be successful for all time zones which have a base offset which is an integer number of hours. For fractional time zones, notably half-hour ones like Iran, India and Sri Lanka, or even less common ones like Nepal with its 45 minute offset. I end up being returned a DateTime that is recalculated to an integer time zone, such that trying to ask for 18:45 in the Iran time zone (+03:30 with 1 hour DST) gives me a DateTime representing 18:45 with a +03:00 offset.

This causes me significant trouble, as it actually mutates the instant represented, as well as resulting in that when writing this date to an Appointment, the Notes client explains to the user how the date was written in a different time zone.

Notes itself has no problem writing appointments in the provided time zones, although it of
course does so through different connectivity than I am utilizing.

As for details, I am currently using Domino 8.5.1 and a matching client, and have verified the problem using several different versions of the NCSO.jar file.

The Java/CORBA classes provide only three methods for creating dates, all of them on the session object. Only one of these methods is documented to be time zone-aware (Accepting a java.util.Calendar object). I am aware of no alternate way to create the DateTime required to update domino Time/DateTime fields.

Logging the DIIOP connection only yields the method call pattern, reproduced below in excerpt detailing the DateTime creation.

Preconditions are an open domino Session object named ‘session’. The session is for the purpose of this example located in Perth, at UTC+08:00 to eliminate it as the source of skewed time components.

I would be especially interested in if anyone who uses the Java/CORBA libraries with Domino has encountered similar problems and what course of action was taken to correct this. Alternately any information about relevant methods I remain ignorant of is appreciated.

// first block creates a Calendar for 2010-07-21T10:15:00 in the Iran time zone.
// so far, nothing domino specific. The resulting calendar is verified as correct.

TimeZone tz = TimeZone.getTimeZone("Asia/Tehran");
Calendar calendar = Calendar.getInstance(tz);
calendar.setTimeZone(tz);
calendar.set(2010, 6, 21, 10, 15, 0);

// first call
DateTime result = session.createDateTime(calendar);

// second call
System.out.println(result.getTimeZone());

// third call
System.out.println(result.getZoneTime());

The output and traces from the above code:

first call to Domino produces the following DIIOP trace 
2010-07-12 23:22:28   DIIOP Session SN000472537: Executing createDateTimeObject 
2010-07-12 23:22:28   DIIOP Session SN000472537: Executing setZoneDateTimeFromJava 
2010-07-12 23:22:29   DIIOP Session SN000472537: Executing getDateTime


second call to Domino, on the resulting DateTime object to retrieve the integer offset. We expect -3003, which is how Domino encodes 03:30 east of the prime meridian. Instead we recieve -3, which encodes 03:00 east of the prime meridian.

second call to Domino produces the following trace 
2010-07-12 23:22:58   DIIOP Session SN000472537: Executing getDateTime

second call produces the following stdout output
-3

third call to Domino to retrieve the printable time as Domino knows it.

third call produces the following DIIOP trace. 
2010-07-12 23:23:14   DIIOP Session SN000472537: Executing getZoneTime 
2010-07-12 23:23:14   DIIOP Session SN000472537: Executing getDateTime

third call results in the following stdout output 2010-07-21 10:15:00 ZE3

To clarify the “ZE3” timezone Domino uses this format for a general timezone and it is to be read as “Zone East (positive) offset 03:00”. An A, B or C would be suffixed for 15, 30 or 45 minute offsets. The expected offset +03:30 should thus result in a date in zone “ZE3B”, but unfortunatly doesn’t.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:23:52+00:00Added an answer on May 15, 2026 at 10:23 pm

    I have worked around this issue by electing to ignore the session.createDateTime(Calendar) method entirely, as it’s timeZone behaviour is apparently incorrect.

    Instead I use session.createDateTime(Date) to create a date in the session timezone and explicitly use the dateTime.convertToZone(int, boolean) method to assign the required zone (mutates the zone, but not the time fields). This requires calculating the domino zone manually (1 for UTC-01:00, -1 for UTC+01:00, -3005 for UTC+05:30. ie, XXYY where X is the minutes past the whole hour in the offset, YY is the integer hours in the offset, and the entire zone is negated if it’s east of the prime meridian). You also need to provide a boolean indicating if the given date is in DST or not. This information is thankfully fairly easy to access through java.util.TimeZone.

    A bit cumbersome, but atleast now everyone can use their own local time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 464k
  • Answers 464k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Under Help -> Manage Help Settings, there is a wizard… May 16, 2026 at 12:56 am
  • Editorial Team
    Editorial Team added an answer I'm assuming that you are calling: - (void)setWidth:(CGFloat)width forSegmentAtIndex:(NSUInteger)segment And… May 16, 2026 at 12:56 am
  • Editorial Team
    Editorial Team added an answer You're setting the Header property of a GroupBox object to… May 16, 2026 at 12:56 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.