简体   繁体   English

GMail用于内部IMAP邮件存储的时区是什么?

[英]What timezone does GMail use for internal IMAP mailstore?

Our experiments have shown that GMail does not use UTC for the internal dates in its mailstore. 我们的实验表明,GMail不会在其邮件存储中使用UTC作为内部日期。 Anyone know what offset it uses? 有谁知道它使用什么抵消? We've narrowed it to between 3 and 7 hours behind UTC (exclusive), and we could figure it out with further experimentation, but maybe someone knows off-hand. 我们已将它缩小到UTC(独家)后3到7个小时,我们可以通过进一步的实验来解决它,但也许有人知道副手。 UID SEARCH and the like aren't very accurate if you are assuming UTC and it's not the case. 如果你假设UTC,UID SEARCH等不是很准确,事实并非如此。 :-) :-)

Further, we're wondering if it's consistent regardless of where you're connecting to gmail in the world. 此外,我们想知道无论你在哪里连接到世界上的gmail,它是否一致。

Update: the first test showed UTC-4 or UTC-5, and a second test I did (sending hourly emails) revealed my account to be UTC-7. 更新:第一次测试显示UTC-4或UTC-5,我做的第二次测试(每小时发送一次电子邮件)显示我的帐号为UTC-7。 We're wondering if it's set when you register depending on your source IP (I also registered an account with a UTC-10 timezone and the internal store was still UTC-7. And changing your account timezone later doesn't change the internal store date an IMAP client sees, wisely, I would think). 我们想知道它是否在您注册时根据您的源IP进行设置(我还注册了一个UTC-10时区的账户,而且内部存储仍然是UTC-7。并且以后更改您的帐户时区不会更改内部存储IMAP客户看到的日期,明智地,我会认为)。

I had written a python IMAP lib client and confirmed that the Gmail timezone is UTC-07:00 and I have confirmed it over and over again. 我写了一个python IMAP lib客户端,并确认Gmail时区是UTC-07:00,我已经一遍又一遍地确认了它。 So, any search results that you obtain (more precisely the after: startDate and before: endDate query) are shifted by that much amount according to your local timezone. 因此,您获得的任何搜索结果(更准确地说是after:startDate和before:endDate查询)都会根据您的本地时区移动那么多。 This is because the mailstore uses the local time according to the sender SMTP server, which in case of gmail happens to be at UTC-07:00. 这是因为邮件存储使用根据发件人SMTP服务器的本地时间,如果gmail恰好是UTC-07:00。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM