你们使用 Chrome 访问 GitHub 时 cookie 里的 tz (timezone) 是什么?

2017-07-21 17:50:04 +08:00
 LioMore

我的操作系统是 macOS,系统时区里设置的是 China Standard Time

但是查看 cookie 里的 timezone 却是 America/Chicago

而使用 Safari 时 timezone 为 Asia/Shanghai

为什么会在意 timezone 这个东西

这个 timezone 会影响到 contributions in last year 图的绘制

查看 timezone 的方法

  1. 打开 https://github.com

  2. 打开 console 输入 document.cookie 或在 Application > Cookies 中查看 Name 为 tz 的那一条


想知道你们是否有同样的问题,以及是否有线索来解决这个问题,感谢 :]

1783 次点击
所在节点    问与答
3 条回复
vjnjc
2017-08-01 10:57:13 +08:00
我 chrome 的是 tz=Asia%2FShanghai
还有 contribution 的时间不是根据 git-commit 的时间么。。。
LioMore
2017-08-01 11:21:46 +08:00
@vjnjc 不是 commit 的时间

https://help.github.com/articles/why-are-my-contributions-not-showing-up-on-my-profile/

"Contributions are timestamped according to Coordinated Universal Time (UTC) rather than your local time zone. Contributions are only counted if they meet certain criteria. In some cases, we may need to rebuild your graph in order for contributions to appear."
vjnjc
2017-08-01 14:10:27 +08:00
@LioMore 果然如此多谢指正

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/377056

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX