AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   format_time is adding extra hours (https://forums.alliedmods.net/showthread.php?t=60940)

r3bel 09-16-2007 20:59

format_time is adding extra hours
 
Hello guys,

I've been trying to format the time in seconds and I found out that format_time always returns the input time + 6 hours.

format_time(str, 32, "%H:%M:%S", 5); // "06:00:05"
format_time(str, 32, "%H:%M:%S", 4815); // "07:20:15"

I'm a little new to the amxmodx scripting, so if you think answer is trivial, please anyway post it.
I use 1.76d on a cstrike game.

Thanks in advance.

X-Script 09-16-2007 21:02

Re: format_time is adding extra hours
 
Wrong Forum, post in the Scripting Help forum to get the help you need.

Trashing Engadged.

r3bel 09-16-2007 21:06

Re: format_time is adding extra hours
 
Oh sorry! I just solved the problem by myself, it turned out that the function uses GMT local time shift.

Roach 09-16-2007 23:52

Re: format_time is adding extra hours
 
Locked...but good info, so ill just move it.


All times are GMT -4. The time now is 16:17.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.