Hi Abu,
There is an hour difference with my phpgrid time field and computer system time. Therefore I try to use date_default_timezone_set in formatoptions. But It does not work ? Is there any other solution or formatoption for this ?
$col["formatter"] = "date"; // format as date
$col["formatoptions"] = array("srcformat"=$'Y-m-d', "newformat"=$'d.m.Y'),"date_default_timezone_set"=$'Europe/Istanbul');
Regards…
Hi Abu,
date_default_timezone_set('Europe/Istanbul'); // TO PUT THIS LINE IN PHP PAGE SOLVES TIMEZONE PROBLEM
$bg=date("d-m-Y");
$db_conf = array();
$db_conf["type"] = "mysql"; // mysql,oci8(for oracle),mssql,postgres,sybase
$db_conf["server"] = "localhost";
$db_conf["user"] = "root";
$db_conf["password"] = "";
$db_conf["database"] = "test";
Please, don't mind for my being in a hurry sometimes.
Regards…