Time shown for thread posts is off by 8 hours [resolved]

The “posted at” time displayed for posts on these forums is consistently wrong, for me. All of them are off by 8 hours (they show things to have been posted 8 hours later than they actually were).

It’s annoying. I tried changing my time zone and region in my profile settings, but neither of them affected the displayed dates/times.

I had to go and create a whole new Chrome extension just to fix the issue!

Here it is, if it’s of use to anybody: UnityForumTimeFixer_0.0.1.zip

To install it:

  1. Extract the zip-file’s contents to a new folder.
  2. Launch Chrome, and open the Tools>Extensions page.
  3. Drag the folder from Windows Explorer onto the page.

Currently I have it set to reduce the hour listed by 8. You can customize it to your own needs in the OnPageLoad.js file.

Just change the “-8” to something else, in this line:
var newDate = new Date(oldDate.getTime() + (1000 * 60 * 60 * -8)); // subtract 8 hours

P.S. By the way, I realize there’s tons of unnecessary code for such a basic operation. There were some functions from another project I needed, so I copied the files without much trimming. I don’t think it affects the load time much, but it’s worth mentioning for if you’d want to remove the extra code yourself.

2160057–142759–UnityForumTimeFixer_0.0.1.zip (92.8 KB)

Okay, completely ignore the above. I tried setting the time-zone again, and it worked this time, fixing the time display.

I thought for sure I had confirmed that the time-zone had no effect, multiple times, earlier.

Oh well. I’m a bit more familiar with the JavaScript Date object now. : |

Click your profile. Go to preferences, change time zone.

1 Like

Yup, it’s based on your timezone setting.