BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-25-2008, 03:09 AM   #1 (permalink)
New Member
 
Join Date: Aug 2008
Model: 7100T
PIN: N/A
Carrier: no idea
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Lotus Notes and MDS, Time converting problem

Please Login to Remove!

Hello,
I would like to ask you about one thing that worries me. I have an application in MDS which calls a web service from Lotus Notes database. It is quite simple and everything works fine except one converting time data between LN and MDS.

Lets have a example: lotuscript class called Person has firstName(String), LastName(String) and timeArrived(XSD_TIME) variables. In MDS there is a form with edit boxes mapped to variables (standart text data type for String and Date/Time for XSD_TIME). When data are filled in BB device and web service is called, there is a function that creates a document based on the data from BB. All text is all right but there is problem with a time field.
I have set a 10:45 in BB device and the document was created with the value 8:45 (2 hours less).

here is a part of function that creates a item to the document:
Call doc.ReplaceItemValue("Time", Me.timeArrived.GetValueAsNotesDateTime)

So, the value is 8:45 and when I call the function that shows the records (shows objects based on the documents) our record shows right firstName, right lastName and 9:45 (1 hour more than in LN document value).

here is a part of function that converts documents to objects:
Dim dt As New NotesDateTime(GetText(doc, "Time")) 'function GetText just gets the text value of a item

Call Me.timeArrived.SetValueFromNotesDateTime(dt)

I am in +1 timezone.

I will welcome any step to solution of the problem. Thank you very much for your time.

brooza
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Fairchild Semiconductor-SFR9014TF MOSFET P-CH, 60V, 5.3A, 0.5 OHM-Qty-25 pcs
$10.0
Fairchild Semiconductor-SFR9014TF MOSFET P-CH, 60V, 5.3A, 0.5 OHM-Qty-25 pcs pictureON SEMICONDUCTOR BC807-40LT1G TRANSISTOR PNP -45V -500MA SOT-23-3
$5.88
ON SEMICONDUCTOR BC807-40LT1G TRANSISTOR PNP -45V -500MA SOT-23-3 pictureFAIRCHILD SEMICONDUCTOR 74VHC14M RISCN1 74VHC14M
$0.99
FAIRCHILD SEMICONDUCTOR 74VHC14M RISCN1 74VHC14M pictureNEW Lam Research 716-116522-012-C 301mm Ring Semiconductor Part TCU -10C to 60C
$424.99
NEW Lam Research 716-116522-012-C 301mm Ring Semiconductor Part TCU -10C to 60C pictureNEW Lam Research 716-018468-190-D 355mm Bottom Quartz Ring Semiconductor Part
$1079.99
NEW Lam Research 716-018468-190-D 355mm Bottom Quartz Ring Semiconductor Part picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.