Github贡献日历日的开始时间 [英] Github Contributions calendar day start time

查看:249
本文介绍了Github贡献日历日的开始时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天前,Github推出了他们的新功能贡献。我有一个疑问,这个日历的一天开始时间是什么?它使用我的本地时间还是UTC?如果它使用我的本地时间,那么我有一个相关的查询,如果去我的时区如果不同的地方会发生什么?

div>

2014年3月更新:从2014年3月10日开始,捐款将记录在当地时区! a href =https://github.com/blog/1793-timezone-aware-contribution-graphs =noreferrer>时区感知贡献图:


在对提交进行计数时,我们使用时间戳中提供的时区信息进行提交。

在Web上打开的请求和问题将使用时区你的浏览器。如果您使用API​​,您也可以指定您的时区。



我们不想搞乱您当前的贡献条件,因此只有在2014年3月10日星期一之后(< a b href =http://en.wikipedia.org/wiki/Coordinated_Universal_Time =noreferrer> Temps UniverselCoordonné)将具有时区意识。







原始答案(2013年3月)

从我能看到的自己的配置文件,它使用我的提交时间,记录在PST中,而不是UTC(从错误报告此文章)。



这个时间戳(使用PST)并不是链接到您使用GitHub的地方。


Few days ago Github launched their new feature "Contributions". I have a query that, what is the day start time of this calendar? is it using my local time or the UTC? and if it is using my local time then i have a related query, What will happen if go to some place where my time zone if different?

解决方案

Update March 2014: starting March 10th, 2014, the contributions will be recorded in the local timezone!

See "Timezone-aware contribution graphs":

When counting commits, we use the timezone information present in the timestamps for those commits.
Pull requests and issues opened on the web will use the timezone of your browser. If you use the API you can also specify your timezone.

We don't want to mess up your current contribution streaks, so only contributions after Monday 10 March 2014 (Temps Universel Coordonné) will be timezone-aware.


Original answer (March 2013)

From what I can see on my own profile, it is using the time of my commits, recorded in PST, and not UTC (from this bug report or this article).

That timestamp (using PST) is not link to the place from where you are using GitHub.

这篇关于Github贡献日历日的开始时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆