The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
2answers
137 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\'' + '"'), ...
2
votes
1answer
26 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 ...
0
votes
0answers
61 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
35 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
51 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
53 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
178 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
294 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
133 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
800 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
222 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
984 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
1k 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
1k 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
3k 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
1k 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 ...