Questions tagged [timezone]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
31 views

Daylight Savings Time (DST) and Last Modified Date (or Created Date) in Apex

I have to create a dynamically changing string for a Task custom field . The Apex code uses Last Modified Date within the EST time zone. My question is: Doesn't Salesforce handle the Daylight Savings ...
1
vote
1answer
172 views

What are all the timezones in SFMC?

So I am finding that there are different timezones in the salesforce marketing cloud across email studio, journey builder, contact builder, analytics, etc. I have identified the following: System ...
0
votes
1answer
70 views

Timezone for “Date” Field should be set to 'Australia/Melbourne'

I need help from experts for a lightning data table with 'Date' type field. I want to strictly set it's timezone to 'Australia/Melbourne' irrespective of user's local timezone. For example, Even if an ...
5
votes
1answer
318 views

Is the time-zone attribute broken in lightning-formatted-date-time?

Based on my reading of the documentation that includes statements like this: When using the component to display a date only, without time, include time-zone="UTC" to ensure the correct ...
1
vote
2answers
82 views

In Apex, how can I format Datetime for Europe/Berlin without assuming the input value is GMT?

I currently have the following function: public String formatForGermany(Datetime targetTime) { return this.format(targetTime, 'Europe/Berlin'); } private String format(Datetime targetTime, String ...
0
votes
0answers
23 views

Use the date time in the timezone of the record owner on custom object

I have a custom object My_Object__c. I want to build a Formula Checkbox field where the checkbox is checked if the CreatedDate local time in the Timezone of the Owner was more than 6 pm. E.g. we have ...
2
votes
1answer
91 views

How do i get the time zone of the device logged in as [closed]

I need to get the time zone of where the user is logged in from. I know userinfo can get the time zone of the user but i want the timezone of the device currently logged in. If my traveling user ...
2
votes
1answer
25 views

What is the best way to correctly create a string with a time queried from SOQL which needs to be displayed to Germans?

We have a custom Datetime field on a custom object, Appointment__r.Start_Date__c. At 6pm, the day before the appointment, we must send every customer with an appointment an SMS which reminds them of ...
1
vote
1answer
274 views

Salesforce displaying Time custom field in GMT instead of User's timezone

We are facing an issue with BST and GMT time zone. We have a community portal and the org timezone and all the Users timezone are set as BST. Part of our functionality is to book an event and we ...
0
votes
0answers
222 views

Timezone change in lightning data-table for a date field is not working

I want to see the update in Date field, once I change the timezone of 'Date' type field in lightning data-table in LWC, but its always showing the same result. For example : const columns = [{ ...
2
votes
1answer
66 views

Date.today() gives different dates on different classes

These are the two classes I have written: aura:component controller class public class ResourcesComponentClass { @AuraEnabled public static void getDate(){ Datetime dateObj = Date....
0
votes
1answer
245 views

I'm trying to get the time now using AMP script in marketing cloud

I'm getting a time in a variable using AMP script, the problem is that the time is in another GMT config and I was not able to find a way to change that to a specif GMT time. For now I'm using this ...
1
vote
1answer
85 views

Does Salesforce store user timezones in abbreviations?

I need to get the timezone of the current user in Apex but I need to get the timezone abbreviation like GMT or CST. Is this possible? Using something like this query in SOQL brings back mixed results ...
1
vote
3answers
321 views

Customize send time according to timezone

How we can send one single email to multiple customers based on their timezone. Let's suppose we have 10 US customers and as we have different timezones in every state. We have to customise email in ...
0
votes
0answers
17 views

How to Convert Time Zone by taking Day Light Saving into consideration in JS Controller

var date = new Date(items[i].pubDate); //var date = this.items[i].pubDate; console.log('date before coversion'+date); var localTime = date....
2
votes
1answer
278 views

Dates appearing one day before the actual date

I am displaying a Lead list using a datatable inside a aura:component. This is the table i am displaying: I am developing this app from India. And, when the client opens the same app from USA, this ...
1
vote
1answer
73 views

get short name (CST) of timezone by using TimeZoneSidKey(America/Chicago) [closed]

I wanted to display CST instead (America/Chicago) in the view. I have a TimeZoneSidKey But not sure how to get the Short Name (CST) of the timezone by using the TimeZoneSidKey .
0
votes
1answer
48 views

Apex Controller Return events data in ISO8601 with a specified offset

I have a basic Apex controller that returns some Event data to my LWC: @AuraEnabled(cacheable=false) public static List<Event> getData() { return [SELECT Id, Subject, OwnerId, Location, ...
0
votes
1answer
29 views

Date Field - Timezone Issues in Batch Job

I'm seeing peculiar behaviour on a Date field (not a DateTime field) when we utilize these date fields in a batch. For instance using the code below: endDate = Date.newInstance(startDate.Year(), 6, ...
0
votes
1answer
115 views

Date Time GMT Format

I know there a lot of answers on the web about this issue. I don't know why or what I do wrong, I cant achieve my need. I'm getting a dateTime from a web service (Guest user) in this format : 05/...
2
votes
1answer
25 views

Is there any chance to get the differnce between users timezone and GMT+0?

I know, how to get my timezone: TimeZone tz = UserInfo.getTimeZone(); And I know, how to get current time of my timezone: Datetime now = Datetime.now(); Integer offset = UserInfo.getTimezone()....
0
votes
1answer
330 views

Changing data retention settings on existing data extension

Is it possible to change the data retention settings of an already-created DE? I have DE's that are automated. An automation puts data view information into these DE's but when I edit, I cant see ...
0
votes
0answers
42 views

A Posted Solution to a lightning:formattedDateTime Problem No Longer Works

I have the same problem asked about here, where the date displayed by the lightning:formattedDateTime component does not match the date field that's its value. I attempted the answer chosen in the ...
1
vote
1answer
495 views

Process builder conditions when custom date/time is NOW()

Should be simple but I'm getting stuck on the formula Building a workflow in process builder and trying to trigger an action when custom object's custom date/time field is NOW().
0
votes
1answer
25 views

Return of Datetime value

I am new to Apex. I have instantiated the Datetime field with (2019, 12, 31, 12, 12, 12) where hour/minute/sec all are '12'. but in the output it is returning '20:12:12'. Please help me to ...
1
vote
1answer
122 views

What is the correct approach to create an Event in Apex for another User with their Timezone?

I'm trying to create an event for another user which needs to appear on their Calendar (in that user's Timezone). e.g. Current user's Timezone is Australia/Sydney, I need to create an event for a New ...
0
votes
0answers
40 views

Event startDateTime shows more timestamp on Production

I have assigned custom timestamp to "starDateTime" standard field of event object by concatenating to custom date field but it shows additional 5:30 hours on Production.It works better in sandbox. I ...
1
vote
1answer
256 views

Is StartDateTime on an Event set to UTC or GMT?

Documentation leads me to say these times are set to UTC always; If the Event IsAllDayEvent flag is set to false (indicating that it is not an all-day event), then the event start date information ...
0
votes
0answers
75 views

Get LanguageLocaleKey based on timezone ID

I have a custom object called Machine__c and i have a custom picklist field in it called Time_Zone__c. This Time_Zone__c field has the same picklist values as the Standard User object timezone field. ...
0
votes
1answer
522 views

Convert UTC to Local time & accounting for DST

In Salesforce Marketing Cloud, we are importing order data into a DE to drive a live, in-person, event registration confirmation email. This data includes the time of a given event in UTC format so ...
0
votes
0answers
190 views

How can I tell Salesforce their CPQ Developer Org is BROKEN when their Submit Case is BROKEN?

My original objective was to do the prework setting up a CPQ Developer Org for Superbadge Billing Specialist The first bullet on "Pre-work and Notes" declares: Default currency is USD and default ...
0
votes
1answer
145 views

Is there a way to detect actual user time zone (not Salesforce user acc.) in visualforce?

We have a "guest" form on our site, and a "guest" user to authenticate. Since the user has a set time zone, this is what (by default) is used by visualforce. Problem is, our Guest User will always be ...
0
votes
1answer
665 views

How to provide default DateTime value in UTC time

I am providing a default value to a DateTime field in my apex class. customobject.DateTime__c = DateTime.parse('01/01/1990 12:00 AM'); I want to set the default value to 01/01/1990 12:00 am UTC ...
0
votes
0answers
108 views

DateTime newInstance doesnt get in user locale

In my code I try to set datetime based on selected location. The Idea is, when the user select locale and then the time, record will be saved with selected datetime value based on selected locale. But ...
2
votes
1answer
228 views

TimeZone.getTimeZone(tz) where String tz equals a supported (I think) timeZoneIdString throws 'Method does not exist or incorrect signature' error

Converting code to utilize the TimeZone class for easier maintainability. For now, I'm stuck relying on a pseudo-timezone field on contacts (c.Time_Zone__c below) to make the determination and setting ...
0
votes
1answer
207 views

Business Hours calculation is incorrect/ not consistent for certain dates

My use case is to calculate the deadline to respond on the Case. Rule is to add 10 business days from the complaint received date. Defined the business hours: Logic 1 Date initialDate = ...
5
votes
1answer
3k views

Why are Marketing Cloud timestamps not stored in the same timezone as Sales Cloud?

I have both Sales Cloud and Marketing Cloud connected and use data shared for a Journey when new records are created. In my object that is triggered in the journey I have a Date/Time field which gets ...
4
votes
1answer
2k views

What is the system timezone in Marketing Cloud and does it consider DST? [duplicate]

My understanding is that the system timezone is CST. Is this correct? When Day Light Saving time occurs does this change to CDT?
0
votes
2answers
92 views

Auto DST for Marketing Cloud accounts [duplicate]

Does Marketing Cloud automatically switch all relevant user accounts when Day Light Saving time occurs? (i.e. their user account timezone is changed)
1
vote
1answer
300 views

How to handle Day Light Saving time in AMPScript

In our Marketing Cloud emails we send emails which contain time slots for Appointments to customers. The data is stored in UTC time in Sales Cloud, and then copied over to Marketing Cloud Data ...
0
votes
1answer
31 views

Formatting Time after clocks change

Background I have a simple apex function which returns a date time formatted using a time zone: public String getFormattedDatetime() { TimeZone tz = UserInfo.getTimeZone(); return ...
7
votes
1answer
2k views

How can I query the supported timezones in Apex?

Apex provides a TimeZone API. You can use this to query the detail of a time zone, named using its "SID" (a value like "Europe/London" or "America/New_York" for example). However, this API doesn't ...
1
vote
0answers
30 views

How to get records created between timeframe in a report

I need to create a report of all the records between 7am to 5pm CST/CDT everyday. How can I achieve this? The solution I tried - Created a formula field which extracts Hours from created date (...
0
votes
1answer
763 views

Time field based on TimeZone

Is Salesforce time field dependant on timezone. Is the time field value change based on TimeZone.
0
votes
1answer
39 views

What is the behavior of date/time fields regarding daylight saving time?

A user located in São Paulo/Brasil is on the UTC-3 timezone. As I write this post it is actually UTC-2 because of daylight saving time. That means that records created today will have the value of ...
2
votes
1answer
506 views

Format date time field to specific time with AMPscript in Marketing Cloud

I have a question; we are trying to send an appointment confirmation through Journey Builder. Now we are struggling to get the time right. It looks like there is added 1 and sometimes 2 minutes to the ...
0
votes
5answers
437 views

How to format a Date with Amscript

While setting an hour in Sales, it seems the Amscript in Marketing Cloud I am using is getting minus one hour. I set 14.00 in Sales and I get 13:00 in Marketing Cloud. I am trying to use zzz or xxx ...
1
vote
1answer
1k views

Salesforce datetime field adding user timezone to the field

I have two datetime field in custom object, to which I am inserting values programatically from my apex class. Fields from my custom object My apex code used to insert/update records in the custom ...
0
votes
1answer
69 views

Storing DateTime and Timezone in a Text field

We have a requirement in which we copy Event.StartDateTime in another field called Activity.Start_Date_Time_Text__c. The calculation of DateTime (UTC at rest) Text happens in before insert and update ...
1
vote
1answer
255 views

Prepopulating Time field in Lightning Quick Action: user time zone not respected

I am building a Lightning Quick Action for an object that includes a field of type Time. I would like to prepopulate that Time field with the current time, while allowing the user to make changes. ...