Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I am using Startdatetime_c custom field as a Date/Time data type, when am inserting a record in salesforce as Startdatetime_c = 26/03/2014 10:00.This record is inserting as per my request, but when am retrieving the particular record using SOQL query in developer console the Startdatetime__c field shown as 26/03/2014 09:00 1 hour delay...why it happens? Is there any ways to solve this?

Thanks VenaktsForce

share|improve this question
    
what is your organization timezone? –  highfive Mar 26 at 13:40
    
@highfive This is my Organization Timezone (GMT+00:00) Greenwich Mean Time (Europe/London) –  Venkatsforce Mar 26 at 14:03
    
Doh! in that case my answer may not help you. But can't think of any other possibilities. Is this happen for all the records? What about other datetime fields if any? –  highfive Mar 26 at 16:36

1 Answer 1

DateTime field values are stored as Coordinate Universal Time(UTC) in salesforce. When displaying them in a client application, they will be converted to the relevant organization time zone. So in the developer console you will see the values in UTC and if you bind them into a VF page, you can see the converted value.
Check this

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.