Raised This Month: $ Target: $400
 0% 

format_time is adding extra hours


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
r3bel
New Member
Join Date: Sep 2007
Location: Siberia, Russia
Old 09-16-2007 , 20:59   format_time is adding extra hours
#1

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.
r3bel is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 09-16-2007 , 21:02   Re: format_time is adding extra hours
#2

Wrong Forum, post in the Scripting Help forum to get the help you need.

Trashing Engadged.
X-Script is offline
r3bel
New Member
Join Date: Sep 2007
Location: Siberia, Russia
Old 09-16-2007 , 21:06   Re: format_time is adding extra hours
#3

Oh sorry! I just solved the problem by myself, it turned out that the function uses GMT local time shift.
r3bel is offline
Roach
Writes love letters to sawce Daily
Join Date: Jul 2006
Location: Internet
Old 09-16-2007 , 23:52   Re: format_time is adding extra hours
#4

Locked...but good info, so ill just move it.
__________________
Quote:
Originally Posted by Brad View Post
That sounds like a really good idea!
Now replace the word "good" with "dumb".
What was your rationale for proposing such a thing?
Roach is offline
Closed Thread



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 -4. The time now is 16:17.


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