Thread: Fix timevar2
View Single Post
  #5  
Old 12-09-2013, 08:16 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by BlueMelon View Post


It's off by around 22 minutes or something like that
It varies from server to server but yeah. On Classic iPhone the timevar2 (epoch time) server is off by about 6 minutes and 10 seconds. So I have to calculate the relative timevar2 variable for time-sensitive events (event at 3 PM EST):

PHP Code:
public function actualtimevar2(tv) {
  
// For converting real epoch timestamps to 
  // server's timevar2.
  
return tv - (60 6) - 12;

__________________
Quote:
Reply With Quote