Corrected Ingame Time Computation

Post Reply
beefypotatoes
Posts: 13
Joined: Sat Jun 29, 2013 12:55 pm

Corrected Ingame Time Computation

Post by beefypotatoes » Sun Jul 21, 2013 12:34 pm

Discovered that my server thought the year was in the 5000s, instead of 1179, along with the wrong day, hour minute, etc. I edited the time computation based on MithraPride, and checked it afterwards.

Possibly relevent, I'm running this on a Linux server (Linux Mint specifically). I know system time can be reported differently on Windows and Linux depending on the libraries used. I do not know if that is the case with the ones being used in this project. It's possible the old time computatin worked properly on Windows.
Attachments
vana_time.cpp.patch
(974 Bytes) Downloaded 301 times

lautan
Developer
Posts: 164
Joined: Mon Jul 30, 2012 6:17 pm

Re: Corrected Ingame Time Computation

Post by lautan » Sun Jul 21, 2013 3:42 pm

This patch gives me the same time. If this works for you i'm going to assume this is correct. Committing.

Post Reply