Answers.Body: <p>Can you double check if the other mailings have the same time in the database and in the UI? It's quite common that one or the other is not taking into account the same timezone, ie if your UI is assuming your database at GTM and your user is at GMT+2, it's normal it starts right away (or the other way around, timezones are always confusing ;)</p>
  
  <p>X+</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-12T20:43:27.410Z
Answers.LastActivityDate: 2017-03-12T20:43:27.410Z
Answers.UserDisplayName: Xavier
Body: <p>I'd like a delay before sending out an automated email.</p>
  
  <p>API call as per <a href="https://civicrm.stackexchange.com/questions/17625/how-do-i-get-civicrm-mailing-to-submit-via-the-api">stack exchange question</a>. </p>
  
  <p>The data passed as $params seems OK. 2 hours in the future.</p>
  
  <p>The database has the correct time. </p>
  
  <p><a href="https://i.sstatic.net/b7yeG.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/b7yeG.png" alt="enter image description here"></a></p>
  
  <p>The user interface says it is sending it now and the mailing actually does get sent now.</p>
  
  <p><a href="https://i.sstatic.net/b7yeG.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/8FUae.png" alt="Mailing report screen grab"></a></p>
  
Tags: <civimail><api><mailing>
Title: How do I schedule a mailing to run in a couple of hours time with the CiviCRM API?
ThreadText: # How do I schedule a mailing to run in a couple of hours time with the CiviCRM API?
  
  (Asked by: username_0 on 2017-03-12)
  
  I'd like a delay before sending out an automated email.
  
  API call as per [stack exchange question](https://civicrm.stackexchange.com/questions/17625/how-do-i-get-civicrm-mailing-to-submit-via-the-api).
  
  The data passed as $params seems OK. 2 hours in the future.
  
  The database has the correct time.
  
  [![enter image description here](https://i.sstatic.net/b7yeG.png)](https://i.sstatic.net/b7yeG.png)
  
  The user interface says it is sending it now and the mailing actually does get sent now.
  
  [![Mailing report screen grab](https://i.sstatic.net/8FUae.png)](https://i.sstatic.net/b7yeG.png)
  
  **Tags:** civimail, api, mailing
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-03-12. Score: 1
  
  Can you double check if the other mailings have the same time in the database and in the UI? It's quite common that one or the other is not taking into account the same timezone, ie if your UI is assuming your database at GTM and your user is at GMT+2, it's normal it starts right away (or the other way around, timezones are always confusing ;)
  
  X+
  
  
  ---
  
  