LioMore
V2EX  ›  问与答

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

  •  
  •   LioMore · Jul 21, 2017 · 2229 views
    This topic created in 3224 days ago, the information mentioned may be changed or developed.

    我的操作系统是 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 replies    2017-08-01 14:10:27 +08:00
    vjnjc
        1
    vjnjc  
       Aug 1, 2017
    我 chrome 的是 tz=Asia%2FShanghai
    还有 contribution 的时间不是根据 git-commit 的时间么。。。
    LioMore
        2
    LioMore  
    OP
       Aug 1, 2017
    @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  
       Aug 1, 2017
    @LioMore 果然如此多谢指正
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1016 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 22:32 · PVG 06:32 · LAX 15:32 · JFK 18:32
    ♥ Do have faith in what you're doing.