Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / GetCurrentDate command is corrupted in build 1.74

Author
Message
basjak
14
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 19th May 2012 04:53
the command date$=GetCurrentdate() is not giving the year properly.



Impetus73
12
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 19th May 2012 13:03
Already explained in another tread, will be fixed in next update. they forgot to add 1900 to the unix year, so 2012 became 112, just check if the year is less than 1900, and add 1900 if so.

----------------
AGK user - novice
Did Amiga / AMOS programming in the 90's, just started programming again with AGK.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 19th May 2012 18:47
This is the thread Impetus73 is talking about:
http://forum.thegamecreators.com/?m=forum_view&t=196655&b=41

I posted a function that does a fix for you until the next release.

Cheers,
Ancient Lady

Login to post a reply

Server time is: 2024-04-27 09:47:16
Your offset time is: 2024-04-27 09:47:16