V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
LioMore
V2EX  ›  问与答

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

  •  
  •   LioMore · 2017-07-21 17:50:04 +08:00 · 1767 次点击
    这是一个创建于 2442 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我的操作系统是 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 的那一条


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

    3 条回复    2017-08-01 14:10:27 +08:00
    vjnjc
        1
    vjnjc  
       2017-08-01 10:57:13 +08:00
    我 chrome 的是 tz=Asia%2FShanghai
    还有 contribution 的时间不是根据 git-commit 的时间么。。。
    LioMore
        2
    LioMore  
    OP
       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
        3
    vjnjc  
       2017-08-01 14:10:27 +08:00
    @LioMore 果然如此多谢指正
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1531 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:10 · PVG 01:10 · LAX 10:10 · JFK 13:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.