Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-21-2014, 04:12 PM
100Zero100 100Zero100 is offline
Registered User
Join Date: Jul 2006
Posts: 31
100Zero100 is on a distinguished road
timevar2 is off?

As of writing this:

http://www.epochconverter.com/

Says the Unix Epoch Time is: 1390323226

At the same time, I echoed timevar2.

Says timevar2 is equal to: 1390321106.845321893

Even using formatTimeString("", timevar2) now retrieves a time about 6 hours and 35 minutes off of the correct time.

Can anyone enlighten me on this?

Edit: getutctime() is also off by the same.

Edit2: In case you're feeling lazy, it appears off by 2120.

Edit3: It's only off by 35 minutes using the 2120 logic. I said it's off by 6 hours because using formatTimeStr() on it now yields time in EST. I suppose this was an internal fix Stefan made for some reason? It's unnecessary. My scripts wanted EST and so I just did -= 21600 in them. I removed my -= 21600 correction for EST and I have implemented a temporary += 2120 offset fix until this is sorted out.
__________________
Hi. I'm NaS!

Last edited by 100Zero100; 01-21-2014 at 04:33 PM..
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:46 AM.


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