19

Whenever I make a comment/issue or commit. The time is off by 10 hours. I believe it is a timezone issue.

Is there a way to change my timezone for my github account?

  • 1
    Is you computer up to your current time and date? – Eight Days of Malaise Nov 21 '12 at 21:11
  • I have this issue; when I hover over "an hour ago", it tells me that I committed something in at 2am- my employer should be so lucky! – Matt Fletcher Jan 28 '14 at 9:40
7

Unfortunately there is no such option. However, Github displays most dates in a relative style anyway - and that's based on your system time so those values are correct.

  • 2
    Not true actually. When I create an issue, I see immediately "crated 10 hours ago". – Kugel Nov 21 '12 at 13:06
  • Odd, works fine for me (CET) – ThiefMaster Nov 21 '12 at 16:08
  • 1
    You are right. My timezone is off on Linux. Fine on windows. – Kugel Nov 22 '12 at 13:33
  • 5
    fun-fact: sometimes the time on my laptop is ahead of the NTP time by ~1 second; github will then always tell me that I opened an issue or pushed something "in a few seconds". I kinda like that. – dom0 Feb 24 '13 at 1:15
  • 1
    It still shows stuff like "two hours ago" being yesterday when it's almost noon. (Not that the time is off, it's correct, it's just dates that get a bit annoying.) – njsg Aug 2 '13 at 8:20
4

Since March, 2014 you can, by using Github's commit API to specify the exact timestamp for your commit.

To see the the format refer to the developer's documentation.

Or you can set the timezone by passing it in headers while making the post request in a commit. like curl -H "Time-Zone: Europe/Amsterdam" -X POST https://api.github.com/repos/github/linguist/contents/new_file.md

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.