Alright, I can't seem to figure out what is going on, so I have decided to ask you guys. In PHP I am grabbing the UTC timestamp using this code:
This will for example give me 1331065202
Then I have this code in Java to get me the UTC timestamp:
long timestamp = System.currentTimeMillis() / 1000;
This will for example give me 1331093502
Why are the 2 times so different? Shouldn't they both be in UTC Timezone or am I doing something wrong? I am hosted on a VPS and these scrips are on 2 different servers so could it be something on the server side and if so, what can I do?