Jimi
Jimi

Reputation: 21

Unix timestamp question, different times

I am working with Unix timestamps, but I get a different time on my Android phone and my computer than the time given on http://www.unixtimestamp.com/index.php

The time difference is one hour (give or take a few seconds probably, didn't ever design an extremely accurate test).

I thought that the Unix time was the same everywhere on earth (or perhaps the universe, but that brings up questions of frames of reference and velocities that I don't even want to think about).

Basically my question is, what is going on here? I get the time on the Android device using Date date = new Date(); long now = date.getTime(); (I account for this having milliseconds btw) and I connect through putty to a linux server and the time is the same (obtained by date +%s). It's just the website that disagrees on the time, and since I don't know too too much about Unix timestamps and the site looks legit I wonder how this happened.

ps. I live in Saskatchewan, which doesn't observe daylight savings, but I don't see how that would really factor in. Does the website read the time from my computer maybe?

pps. sorry for rambling

Upvotes: 2

Views: 663

Answers (1)

Greg Hewgill
Greg Hewgill

Reputation: 993213

That web site displays the wrong time.

Upvotes: 6

Related Questions