Server shows incorrect date
My plugin shows the time in GMT, I need to show it in GMT+3, how is it possible to change it ? Because I get wrong UnixToTime value.
The result is : 9/24 8:7 (Day/Month Hour:Minute) As it has to be 9/44 11:07. I'm using this: get_systime() + bantime = 1316851662 UnixToTime( get_systime() + bantime , iYear , iMonth , iDay , iHour , iMinute, iSecond ); |
Re: Server shows incorrect date
Ask the host to update the time on the server. If they won't do that then you just need to add or subtract the difference between your time and GMT (in seconds). But, remember that you will need to either do it for every instance of get_systime() or you should only do it when displaying it and leave all stored values as is.
|
I added time zone offset consideration (as optional param) to unixtime include, I'll post later today.
http://forums.alliedmods.net/showthread.php?t=91915 |
| All times are GMT -4. The time now is 19:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.