Answers.Body: <p>This sounds like it might be a bug in CiviRules. I suggest that you <a href="https://lab.civicrm.org/extensions/civirules/-/issues" rel="nofollow noreferrer">raise an issue</a>.</p>
  <p>Looking at the issues, <a href="https://lab.civicrm.org/extensions/civirules/-/issues/127" rel="nofollow noreferrer">#127</a> might be related.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-02T17:05:53.697Z
Answers.LastActivityDate: 2021-07-02T17:36:49.587Z
Answers.LastEditDate: 2021-07-02T17:36:49.587Z
Answers.UserDisplayName: William Mortada
Body: <p>I have a rule with the trigger &quot;Case activity is added&quot;. This activity is an &quot;Alert&quot; activity, and when is created, the action &quot;Send E-mail to contacts on a case&quot;, sends it to supervisor roles in that case.</p>
  <p>However as you can see in the attached image, while the Alert is created in the right local time, the sent email is registered with +4 hours (so I think is UTC time because we are in America/Santiago).</p>
  <p><a href="https://i.sstatic.net/GdpXK.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/GdpXK.png" alt="Send email activity created by CiviRules with +4 hours or UTC time" /></a></p>
  <p>I'm on wordpress and sure that is correctly set in America/santiago in CMS. Also I have set that as Default timezone in php.ini.</p>
  <p>Using Civicrm 5.36.0, Wordpress 5.7, CiviRules 2.24, and E-Mail API 2.2</p>
  <p>Any help or guidance will be very appreciated!</p>
  
Tags: <civicase><civirules><activity>
Title: Civirules send email action creates activity in UTC time
ThreadText: # Civirules send email action creates activity in UTC time
  
  (Asked by: username_0 on 2021-06-05)
  
  I have a rule with the trigger "Case activity is added". This activity is an "Alert" activity, and when is created, the action "Send E-mail to contacts on a case", sends it to supervisor roles in that case.
  
  However as you can see in the attached image, while the Alert is created in the right local time, the sent email is registered with +4 hours (so I think is UTC time because we are in America/Santiago).
  
  [![Send email activity created by CiviRules with +4 hours or UTC time](https://i.sstatic.net/GdpXK.png)](https://i.sstatic.net/GdpXK.png)
  
  I'm on wordpress and sure that is correctly set in America/santiago in CMS. Also I have set that as Default timezone in php.ini.
  
  Using Civicrm 5.36.0, Wordpress 5.7, CiviRules 2.24, and E-Mail API 2.2
  
  Any help or guidance will be very appreciated!
  
  **Tags:** civicase, civirules, activity
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-07-02. Score: 2
  
  This sounds like it might be a bug in CiviRules. I suggest that you [raise an issue](https://lab.civicrm.org/extensions/civirules/-/issues).
  
  Looking at the issues, [#127](https://lab.civicrm.org/extensions/civirules/-/issues/127) might be related.
  
  
  ---
  
  