doulaozhi6835 2014-08-28 07:42
浏览 23
已采纳

MailChimp API 2.0时区

I'm using the MailChimp API to create campagins from my own site. This all works perfectly but for the time.

When I schedule my campaign for say 9:00 PM it will be listed in MailChimp for 11:00 PM. And it wil be send at 11:00 PM as well.

My account settings are set to Central Europe GMT +2 and my server time echo's te correct time as well.

This is my code:

$schedule = $mailchimp->call('campaigns/schedule', array(
   'cid' =>  $campaign['id'],
   'schedule_time' => $date // format yyyy-mm-dd hh:mm:ss
));
  • 写回答

1条回答 默认 最新

  • douqin6785 2014-10-02 14:01
    关注

    Answer from MailChimp:

    When passing the time through the campaigns/schedule call, it will be formatted as GMT, as it mentions in the docs.

    Since the account is GMT+2, the campaign is scheduled for the GMT time passed in the call, plus the offset for the account, which is causing the two hour difference.

    Passing the time in the call as GMT will allow for the campaign to be scheduled as expected.

    This works :)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 前端echarts坐标轴问题
  • ¥15 CMFCPropertyPage
  • ¥15 ad5933的I2C
  • ¥15 请问RTX4060的笔记本电脑可以训练yolov5模型吗?
  • ¥15 数学建模求思路及代码
  • ¥50 silvaco GaN HEMT有栅极场板的击穿电压仿真问题
  • ¥15 谁会P4语言啊,我想请教一下
  • ¥15 这个怎么改成直流激励源给加热电阻提供5a电流呀
  • ¥50 求解vmware的网络模式问题 别拿AI回答
  • ¥24 EFS加密后,在同一台电脑解密出错,证书界面找不到对应指纹的证书,未备份证书,求在原电脑解密的方法,可行即采纳