[Include] uDate
#8

Quote:
Originally Posted by Drake1994
Посмотреть сообщение
Well to tell the truth i didn't found any bug in gettime(), it return the time in second in GMT +0.
And the gettime() depends on how the machine's time is set, because it return the time of the machine.

Here is the proof:
Код:
public OnFilterScriptInit()
{
	HTTP(0, HTTP_GET, "webadmin.gc4.hu/asd.php", "", "TestIt");
	return true;
}

forward TestIt(index, response_code, data[]);
public TestIt(index, response_code, data[])
{
	printf("%d", gettime());
	print(data);
}
The code will print this:
Код:
[15:36:54] 1356705414
[15:36:54] 1356705416
The first line is the gettime() function.
The second line is the PHP time() function.
Yeah! Should be same for all the TimeZones that is the bug. For +5:30 TimeZones. That is the way you can fix it.
Reply


Messages In This Thread
uDate - by Drake1994 - 27.12.2012, 20:34
Re: uDate - by TheArcher - 27.12.2012, 21:04
Re: uDate - by paulor - 27.12.2012, 21:22
Re: uDate - by Drake1994 - 28.12.2012, 11:40
Re: uDate - by Prumpuz - 28.12.2012, 12:00
Re: uDate - by Ballu Miaa - 28.12.2012, 12:57
Re: uDate - by Drake1994 - 28.12.2012, 13:08
Re: uDate - by Ballu Miaa - 28.12.2012, 13:32
Re: uDate - by Drake1994 - 28.12.2012, 13:38
Re: uDate - by Ballu Miaa - 29.12.2012, 03:45

Forum Jump:


Users browsing this thread: 1 Guest(s)