I am working on a fix for a User Initiated send created from SSJS. We create the email send definition and add the appropriate properties (CustomerKey, Name, IsMultipart, SendClassification, SendDefinitionList, Email and EmailSubject). The code then does and
InvokeCreate with the email send definition. The email is then scheduled via a
Here is the code to schedule the send.
// Schedule the Send var scheduleTime = new Date(eventDateTime); scheduleTime.setHours(scheduleTime.getHours() - 3); var oneHourSend = Send.Definition.Init(sendDefName); oneHourSend.Send(scheduleTime);
All worked well until DST hit. We are now sending the one hour reminders 2 hours early. I am sure it has to do with the account default being CST.
I see there is a TimeZone object we can attach to the EmailSendDefinition. Is this how we set the BU on the account to send in “Eastern Time”? If so, is there a document that will show what properties are required to be set on the TimeZone object and what properties are optional? Is there an easier or better way to do this?