如何在Outlook.com链接中设置一个时区



我正在尝试为英国的Outlook活动设置正确的时间,但Outlook似乎为BST(英国夏季时间(设定了不正确的时间。

这是一个链接,该链接将在2017年6月19日下午1254点至1257pm创建活动。

在我的Outlook中,它提前1354pm开放。有没有办法明确设置链接中的时区?

我尝试检查我的设置并使用其他Outlook帐户,因此我认为这不是我的邮件/日历设置的问题。

https://bay02.calendar.live.com/calendar/calendar.aspx?rru = addevent& event& description =示例 文本。& allday = false& uid =

在研究相当的研究之后,我意识到Outlook在发送链接时总是在UTC中表达时间。因此,您需要将日期/时间从BST转换为UTC。您可以使用这样的php进行此操作:

$date = new DateTime('2017-06-22T12:54', new 
DateTimeZone('Europe/London')); /* <-- Time zone to be converted */
echo $date->format('YmdHis') . "n";$date->setTimezone(new 
DateTimeZone('UTC'));echo $date->format('YmdHis') . "n"; /* <-- New time zone, UTC */

最新更新