You need to sign in to do that
Don't have an account?
Sapthagiri Reddy
Salesforce Time Zone Issue
Hi,
I have developed a "Calendar View" in Salesforce using "ajax, jQuery and html". Now when I enter a record having fields as "Start Date & End Date" from India (the Org. timezone is US timezone), it is being saved according to the respective timezome of the Org. When I query the records and display them (Start Date & End Date) on a VF page, the Start Date & End Date are shoing time (-5:30 hrs).
For example if I set "Start Date" as Jan 30, 2014 10:30PM, it is being displayed on VF page as Jan 30, 2014 5:00PM. And its the same with "End Date".
Can anyone help me in getting this resolved.
Regards
I have developed a "Calendar View" in Salesforce using "ajax, jQuery and html". Now when I enter a record having fields as "Start Date & End Date" from India (the Org. timezone is US timezone), it is being saved according to the respective timezome of the Org. When I query the records and display them (Start Date & End Date) on a VF page, the Start Date & End Date are shoing time (-5:30 hrs).
For example if I set "Start Date" as Jan 30, 2014 10:30PM, it is being displayed on VF page as Jan 30, 2014 5:00PM. And its the same with "End Date".
Can anyone help me in getting this resolved.
Regards
Please check if Visualforce is referring running user's locale. Try comparing your code with following threads in case you missed anything.
http://salesforce.stackexchange.com/questions/15944/timezone-issue-with-datetime-field-again
http://www.interactiveties.com/b_locale_datetime.php