gettime()
#1

I use to get the current time, using gettime() function and save the unix timestamp into my server database, you can check my previous thread. However gettime() uses UTC, meanwhile mine is UTC+2 and it won't show the proper time for anybody away from UTC. So should I use another function like NOW() or something else ?

This is how the query to save the unix timestamp looks like:
pawn Код:
format(query, sizeof(query), "UPDATE players SET LastLogin = '%i' WHERE Name = '%s' LIMIT 1", gettime(), Name[playerid]);

Edit: Let me note that I tried to replace gettime with NOW and it gave me this error:
pawn Код:
error 017: undefined symbol "NOW"
Reply


Messages In This Thread
gettime() - by x96664 - 16.12.2013, 00:14
Re: gettime() - by Krakuski - 16.12.2013, 00:19
Re: gettime() - by x96664 - 16.12.2013, 00:24
Re: gettime() - by Chenko - 16.12.2013, 00:50
Re: gettime() - by x96664 - 16.12.2013, 12:52
Re: gettime() - by arakuta - 16.12.2013, 12:59
Re: gettime() - by Vince - 16.12.2013, 13:07

Forum Jump:


Users browsing this thread: 1 Guest(s)