The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
25 views

How to get Timezone from the Lead Address field?

How to get timezone abbreviated key from lead address fields using apex?
1
vote
2answers
72 views

Which object is the default organization timezone stored on?

I've got a managed package and I'm trying to programmatically figure out what the default timezone is for the orgs that my package is installed on. I've found where to set the default timezone in the ...
2
votes
1answer
79 views

Datetime won't save using correct time zone

Ok so I've been trying to sort this out all day and I've not made a single bit of progress. I have a set up a site on Salesforce as a web service endpoint. A client's system sends an HTTP request ...
1
vote
1answer
60 views

Why is the date saving as an hour later?

The company default time zone is GMT (+00:00), and a date sent using the API is coming through like this: 09:16:37.032 (32355740)|USER_DEBUG|[17]|DEBUG|Date/Time: 2014-06-19T10:16:00.977 It ...
0
votes
1answer
139 views

Convert Event StartDateTime and EndDateTime from GMT to the local timezone

This is the query I'm making: public List<event> evtList{get;set;} evtList = [select Id, subject, Who.Name, Location, StartDateTime, EndDateTime from Event where ActivityDate = TODAY and ...
5
votes
2answers
236 views

JSON.serialize is mucking with my datetime objects. How do I fix this?

I feel that the following assertion should be true, but it is not: DateTime testDate = DateTime.now(); System.assertEquals('"' + testDate.format('yyyy-MM-dd\'T\'hh:mm:ss.SSS\'Z\'' + '"'), ...
3
votes
1answer
88 views

How can I force the calendar to display the timezone of the user whose calendar is being viewed, and not the timezone of the user doing the viewing?

Is there a way to have the calendar in Salesforce display event times in the timezone of the user whose calendar is being viewed/edited instead of in the timezone of the editing user/viewer? For ...
5
votes
1answer
497 views

Clarification about Timezone Conversion in DateTime

There are lots of posts regarding DateTime format. But I have things that I still can't find a solid answer for. 1). I Noticed that datetime field values are converted into UTC and that converted ...
1
vote
2answers
63 views

What timezone is Opportunity CloseDate stored in?

I am working specifically with Opportunities, but I assume that all closeDates are stored the same in SF. If an Opportunity is closed at 10pm EST, March 4th; the time is 3am March 5th in UTC. Does ...
2
votes
1answer
191 views

Created Date time difference

So I have a visualforce page displaying a query. But when it is being display on a force.com sites page. The created dates are different. Visualforce page inside sandbox: Visualforce page on ...
0
votes
1answer
171 views

How do I get a user's timezone info?

What API call do I need to get a user's timezone? e.g. "America/Los_Angeles"
3
votes
2answers
651 views

Is there a default TimeZone in which Date fields are stored in Salesforce?

There is a Date Field whose value is I gave as 15th Oct 2014. When I insert the same, Is this an absolute time value irrespective of any Time-Zone; does it matter who inserted the Date field? I have ...
4
votes
1answer
505 views

How to get the current timestamp using SOQL query?

I want to know the timezone of the timestamp value in systemmodstamp column in my SF objects.
2
votes
2answers
223 views

Time Zone on User Reports

If I run a report on user login date/time, what time zone is that show in? My user account's time zone or the user's on the report?
2
votes
2answers
1k views

Timezone issue with Datetime Field [again ;-)]

I probably saw this question 100 times, but still don't understand. So basically I want to display only the Time from a datetime field but not the Date. However I always get the GMT time. I know I ...
5
votes
2answers
301 views

Did anyone restrict users changing their timezones?

I want to know if there is an easy way to restrict users from changing their Timezone. I wrote a trigger to do it for now, but I was wondering why Salesforce didnt allow us to write a Validation Rule ...
2
votes
2answers
1k views

How do we get user's time zone offset integer in Apex or Formula Field?

How do we get user's time zone offset integer in Apex or Formula Field? For example, a user's personal information time zone (GMT-04:00) Eastern Daylight Time (America/New_York) should return -4. ...
3
votes
2answers
2k views

Time Zone (and Daylight Savings) calculations (to a Text field)

In the below formula code, we have to alter the -4 or -5 values each time we enter or leave Daylight Savings time due to the fact that SF, when pulling the Text version of the Time, does it in GMT (or ...
7
votes
5answers
2k views

Timezone issue with Datetime field in salesforce

I have a custom field of type datetime on a custom object. I want to show this field as it is regardless of timezone. As of now, salesforce converts value to user's current timezone while showing on ...
3
votes
1answer
2k views

Apex Data Loader is loading previous date

Apex Data loader is loading previous date. Salesforce Organization Default Time Zone is GMT+05:30 Salesforce User Time Zone is GMT+05:30 Apex Data Loader time zone is GMT+05:30 CSV, for Apex Data ...
2
votes
3answers
4k views

Datetime input field cast to another timezone

Is there a way to cast the input of a timedate field to another timezone's GMT...? If the user is in say: MDT, an input of 12:00, will be saved as 18:00, but if I want that value to be in EDT, I need ...
9
votes
2answers
1k views

Is this somehow not a bug in the DateTime object exposed by JSONParser getDateTimeValue() method?

I opened a case with Salesforce (#08078994), but their Support Engineer has claimed repeatedly that, "I have reconfirmed and there is no issue with Date Time methods. The issue which you are notifying ...
8
votes
3answers
2k views

Date input taking into account users time zone offset

I have an input field that is binding to a backing Task in the controller to allow users to enter a date into the ActivityDate field. I'm not interested in any other fields on the Task. I'm just ...