Novell Home

Changing a Notes DateTime Field

Novell Cool Solutions: Tip
By Perry Nuffer

Digg This - Slashdot This

Posted: 21 Nov 2007
 

Problem

A Forum reader recently asked:

"Is it possible to set the HTTPPasswordChangeDate value in the Domino directory, (Public Notes Address Book, i.e. NAB)? This particular Notes field on the Person document in the NAB is in Notes DateTime format, and I've been struggling to figure out how to set it."

And here's the response from Perry Nuffer ...

Solution

Prior to NotesDriverShim v3.5.1, the input format for Notes DateTime fields needs to be in 'seconds since midnight 1/1/1970 UTC' format (i.e. CTIME). The NotesDriverShim v3.5.1 can handle input timestamps in a traditional readable format (mm/dd/yyyy hh:mm:ss) as well. The readable DateTime format parsing is done by the Lotus Notes APIs, so the language and format you use is subject to the settings of the Notes/Domino API libraries that the NotesDriverShim is accessing at runtime.

The XDS input document to the NotesDriverShim should look something like this:

<input>
  <modify class-name="Person" event-id="82869BF0052E4FDE87257242007B00B7 - 1166130787379" src-dn="\novell\John Doe">
    <association state="associated">82869BF0052E4FDE87257242007B00B7</association>
    <modify-attr attr-name="HTTPPasswordChangeDate">
      <remove-all-values/>
      <add-value>
        <value type="time">1176492434</value>
      </add-value>
    </modify-attr>
  </modify>
</input>

The XDS input document for NotesDriverShim v3.5.1 can look something like this:

<input>
  <modify class-name="Person" event-id="82869BF0052E4FDE87257242007B00B7 - 1166130787379" src-dn="\novell\John Doe">
    <association state="associated">82869BF0052E4FDE87257242007B00B7</association>
    <modify-attr attr-name="HTTPPasswordChangeDate">
      <remove-all-values/>
      <add-value>
        <value type="time">04/12/2009 1:00:00pm MDT</value>
      </add-value>
    </modify-attr>
  </modify>
</input>


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell