Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Server-time (https://forums.graalonline.com/forums/showthread.php?t=134257479)

LoneAngelIbesu 12-28-2009 12:59 AM

Server-time
 
In the process of attempting to script a cron-like thing, I tried to sync it up with Valikorlia's server-time, as shown in the little 'start bar' of Graal.

What is this based off of? It doesn't seem to match timevar2 (which is what my script uses), when using converttimetostring(). In fact, the two differ by a full 7 hours.

DustyPorViva 12-28-2009 01:44 AM

Pretty sure it's actual time(GMT)... and I'm pretty sure all timevar's are independent from such. There are conversion functions floating around in the code gallery, but it ends up being useless anyways as the clocks the servers are running are off and constantly adding to the offset, so it won't be accurate. Stefan doesn't want to fix this though because it would set the time back to hours on some servers, and possibly break scripts that rely on timevar for that much time.

LoneAngelIbesu 12-28-2009 02:05 AM

Quote:

Originally Posted by DustyPorViva (Post 1547470)
Pretty sure it's actual time(GMT)... and I'm pretty sure all timevar's are independent from such. There are conversion functions floating around in the code gallery, but it ends up being useless anyways as the clocks the servers are running are off and constantly adding to the offset, so it won't be accurate. Stefan doesn't want to fix this though because it would set the time back to hours on some servers, and possibly break scripts that rely on timevar for that much time.

The time is GMT+1, though it's about 12 minutes behind (or, if you prefer, GMT plus 48 minutes). So, Valikorlia's timevar2 is around GMT-6 .. minus 12 minutes.

Good to know, I guess. :whatever:

xXziroXx 12-28-2009 04:09 AM

http://forums.graalonline.com/forums....php?p=1438568

Most likely related.

DustyPorViva 12-28-2009 04:17 AM

Servertime was correct when I last checked... I remember I compared it to my computer clock to make sure it was GMT and not timevar based and they were both at 55 minutes.

xXziroXx 12-28-2009 04:19 AM

Quote:

Originally Posted by DustyPorViva (Post 1547490)
Servertime was correct when I last checked... I remember I compared it to my computer clock to make sure it was GMT and not timevar based and they were both at 55 minutes.

Varies server to server, most likely machine to machine as well.

DustyPorViva 12-28-2009 05:19 AM

Quote:

Originally Posted by xXziroXx (Post 1547491)
Varies server to server, most likely machine to machine as well.

Ah, well he was talking about the servertime on login(on the taskbar). I assumed that was a 'static' time.

LoneAngelIbesu 12-28-2009 05:27 AM

Quote:

Originally Posted by DustyPorViva (Post 1547498)
Ah, well he was talking about the servertime on login(on the taskbar). I assumed that was a 'static' time.

Just checked. That time also varies. I wonder how it's calculated, since it's so different from what converttimetostring() outputs.

Kind of puts a dent in my plans to release this. Syncing it up for different servers is going to be complicated.


All times are GMT +2. The time now is 08:43 PM.

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