Raised This Month: $51 Target: $400
 12% 

Server's time [thetime]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 06-25-2016 , 09:46   Server's time [thetime]
Reply With Quote #1

My server shows wrong time [when u type > thetime] . Is there a way to fix it?
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-25-2016 , 11:44   Re: Server's time [thetime]
Reply With Quote #2

The time is based on the computer's internal clock. Fix your computer's clock and it will fix the time displayed by AMX Mod X.
__________________
fysiks is online now
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 06-25-2016 , 12:03   Re: Server's time [thetime]
Reply With Quote #3

Actually, server's time is correct, but it shows 2012 year. Btw my clock is correct.
__________________

Last edited by SomewhereLost; 06-25-2016 at 12:04.
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 07-07-2016 , 08:23   Re: Server's time [thetime]
Reply With Quote #4

bump
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-07-2016 , 08:52   Re: Server's time [thetime]
Reply With Quote #5

Your server's clock is likely incorrect. The native uses the time() C function which returns the unix timestamp of the current system. It does nothing else apart formatting a string from those seconds.
__________________
Arkshine is offline
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 07-07-2016 , 13:16   Re: Server's time [thetime]
Reply With Quote #6

ahm, now, can u explain it on human's language?
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-07-2016 , 13:28   Re: Server's time [thetime]
Reply With Quote #7

"thetime" doesn't change the time in any way before presenting it, it just uses what your OS gives it, like possibly 99% programs out there that show time.

Last edited by klippy; 07-07-2016 at 13:28.
klippy is offline
Reply



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 14:46.


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