The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
1answer
34 views

Changing case owner based on created date with respect to organization time zone

In Apex, I would like to get the cases created in January 2016 based on organization time zone. E.g. Organization time zone is GMT+8 and a case record has been created in 31/12/15 23:00:00 GMT , Is ...
1
vote
2answers
27 views

DST for custom fields

In my project I am storing a date and time in custom field using SOAP API. Will Salesforce automatically adjust time based on daylight savings time. For example if I am storing 2012-11-15 ...
4
votes
0answers
39 views

API Calls timezone details

When making an API call to SendEvent or OpenEvent objects in the REST API, the return value is in Central time. How do I know what timezone it is using for the dates that I pass as arguments? If I ...
1
vote
1answer
97 views

GMT to EST time zone in apex

How can i convert GMT to EST using apex, I have EST as my timezone settings but still all the DateTime fields are in GST timezone.
1
vote
1answer
43 views

Timezone conflicts from user setup to visualforce

I have a user that is set up in the right time zome from the admin section. If I do: system.debug(UserInfo.getTimeZone()); it shows properly as well. However when I bring the results into my VF ...
0
votes
1answer
26 views

Custom date and time field on opportunity is mismatching in developer console

I've a custom Date&Time field on Opportunity.When I retrieve for a single record,this date value is showing correct in Developer console but Salesforce UI is showing wrong date.I'm in EST ...
1
vote
2answers
55 views

Convert DateTime from one TimeZone to Another?

I'm sending out an Email notification using a Trigger every time an Appointment is set (an Event is created). The User who's creating the Event is generally not the same as the Owner of the Event, ...
3
votes
2answers
58 views

Include Time Zone in standard UI date format

Does anyone know a way to include the time zone abbreviation on dates/times displayed on standard Salesforce forms? We have users who travel across the country, and we have a default time zone set, ...
1
vote
2answers
130 views

How to do a SOQL Query of DAY_ONLY on a DateTime field?

Here is the problem. We use Stripe to process credit card payments, and Stripe deposits the money into our account two days later, minus fees. I've created a schedulable class that runs every ...
1
vote
2answers
121 views

DateTime field = DateTime variable is losing the timezone

In short, I have built a very simple case builder in Apex/Visualforce where you select a case starting date (DateTime) and then it sets this value as the Estimated Start Date of the case (also ...
2
votes
0answers
105 views

Timezone difference calculation [closed]

I have a requirement where the User's timezone might be in EST,PST or IST. Whenever an event is created for an Account, Start time of the event will be captured in the USER's timezone. But, there will ...
1
vote
0answers
82 views

Send email to Users at 11PM in a Scheduled class. Each User has different time zone

I want to send email to users at 11:00 PM, When certain criteria is met. I tried to accomplish this by Time-Based Workflow rule, but failed, as we cannot run a workflow rule on a specific time of ...
4
votes
1answer
184 views

Salesforce Timezone automatically recognise GMT and BST?

We are facing an issue with Salesforce timezones and recognising the difference between GMT (+00:00) and GMT (+01:00) aka British Summer Time. For context we are based in the UK. When the Application ...
1
vote
1answer
249 views

Waiting for Response. Google Time Zone and GeoCode API

I am trying to make a TimeZone class that does the process to get a time zone. I am using the Google API's. In order to get the timezone you have to make a callout to the Google Geocode API and get ...
0
votes
0answers
30 views

SOAP API get timestamp when the object is recently accessed

There is a current requirement to track the time at which the object has been previously read. I used the time at which the job is submitted to track the read as this is what I could come to tracking ...
1
vote
1answer
104 views

Using a custom formula field to create a timezone adjusted field using an existing datetime and timezone field

We would like to use an email alert to automate demo reminder emails for our prospects. We currently have a Demo Meeting Time field (datetime) and a Timezone field (text) to reference in a formula ...
12
votes
4answers
408 views

What is the purpose of Datetime.dateGmt() function?

In casual testing, I can see these give different results: //assemble from component parts Datetime now = System.now(); Date today = Date.newInstance(now.yearGmt(), now.monthGmt(), now.dayGmt()); ...
-1
votes
1answer
143 views

need to store date time based on customer timezone

Is it possible to calculate the timezone based on the country/state field value of a record? If so how? Is it possible to display the time field with the timezone it relates to? If so how?
1
vote
0answers
299 views

Issue with Task Due Date

I need to compare the task due date against Now() to check if a task was within SLA. Now I am facing a problem with the timezone. Due Date field is not storing the time. How to get the time gap ...
0
votes
1answer
132 views

Is it Possible to calculate different business hours, based on different queues and different time zones?

Can we calculate different business hours, based on different queues and different time zones? Please Help me!!
3
votes
2answers
2k views

How to determine UTC for a date/time represented in a time zone other than the current user's time zone?

How do you determine the UTC of a civil date/time represented in a time zone other than the current user? I know this occurs automatically when using the DateTime.newInstance() method but it's always ...
3
votes
1answer
2k views

GMT Timezone in formula fields?

I have a field which calculates opendate-closeddate. It is in IST time zone and i need to display in GMT time whenever it is giving a result. Is it Possible to convert date/time from any timezone to ...
1
vote
1answer
160 views

How to get Timezone from the Lead Address field?

How to get timezone abbreviated key from lead address fields using apex?
2
votes
1answer
398 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 ...
3
votes
1answer
1k 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
270 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
2answers
573 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
590 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
433 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 ...
6
votes
1answer
2k 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
127 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
2answers
456 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
459 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"
4
votes
2answers
3k 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
1k 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
582 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?
5
votes
3answers
2k 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
478 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
3answers
3k 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. ...
4
votes
2answers
4k 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
5k 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 ...
4
votes
1answer
4k 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 ...
7
votes
2answers
2k views

Day Light Saving (DST) in salesforce

I just want to know whether salesforce internally uses DST. How can I check that? Any thoughts?
3
votes
3answers
7k 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 ...
11
votes
2answers
2k 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
3k 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 ...