Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Fix timevar2 (https://forums.graalonline.com/forums/showthread.php?t=134268913)

fowlplay4 11-25-2013 10:57 PM

Fix timevar2
 
Two options:

1. Set it to the actual timevar2/epoch-time -- remove the offset.
2. Add a function/variable to get the real epoch time instead.

Admins 12-09-2013 08:07 AM

What offset? You mean on client-side?

BlueMelon 12-09-2013 02:32 PM

http://i.imgur.com/qC1VAc7.png

It's off by around 22 minutes or something like that

Crow 12-09-2013 03:19 PM

The offset is related to wrong time on the servers, I'm guessing.

fowlplay4 12-09-2013 08:16 PM

Quote:

Originally Posted by BlueMelon (Post 1724181)
http://i.imgur.com/qC1VAc7.png

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;




All times are GMT +2. The time now is 08:35 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.