function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
F.H.KazmiF.H.Kazmi 

Issue in Calender's event

Issue in Calender's event

If using salesforce API for Java we make an calender Entry Event and in it the event is scheduled to be a custom duration event i.e. not a All Day Event then the event is not saved on the date that we have passed through the API. For example if we make a All day event using salesforce Java API then the event created on salesforce.com has the same date that we had passed through API, but in case of a custom duration event the date is changed when saved in salesforce.com.
i.e. it is not that we had passed through API

SuperfellSuperfell
Can you provide an example? are you sure its not just TZ offset's being applied?
Vijay RautVijay Raut
How Much difference you are getting in Date (i mean number of days / Hours,....)

I think it might be due to TimeZone setting of the Salesforce User, which you are using fro connection to Salesforce in Java.

Cheers,
V.R.
F.H.KazmiF.H.Kazmi
I send
<ActivityDateTime>2008-09-23T05:14:31.801+0500</ActivityDateTime>,
<Description>important for sale</Description>,
<Subject>customEv 23 9</Subject>,
<DurationInMinutes>210</DurationInMinutes>,
<WhoId>000000000000000000</WhoId>,
<OwnerId>00000000000000000</OwnerId>,
<Location>San Diego</Location>,
<ActivityDate>2008-09-23</ActivityDate>


On salesforce the result show in Events list is

customEv 23 9,    fahad shahab, 9/2/2008 2:14 PM,    fhkazmi
SuperfellSuperfell
what timezone/locale is your salesforce user account set to ?

what do you get if you run a soql query for those fields on that record?