mailmoo_sender_set_time_zone
Change when a sender's daily limits reset
Sets the timezone whose midnight resets a sender's daily limits (social account and every email account at once), as an IANA name such as Europe/Helsinki, or null for a rolling 24 hours. A change never frees up limits early: what the sender already used keeps counting until the first reset under the new setting, so today can run longer than a normal day. Tell the user this, when the first reset is (firstResetAt), and any campaigns in sendingAcrossReset (their sending hours span the new reset, so the sender can spend two days' limits at once), before confirming. Sender by name or id. Without confirm it returns the setting before and after and its effect; then call again with confirm: true.
Effect: Write. See Effects.
Permissions: Read campaigns, Write campaigns.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sender | string | Yes | The sender, by name or id. |
timeZone | string or null | Yes | IANA timezone, e.g. Europe/Helsinki, or null for a rolling 24 hours. |
confirm | boolean | No | Leave out first: the call then changes nothing and returns what would happen. Show that to the user, and call again with confirm: true once they agree. |

