: /*
* localization convert localtime with date time
*/
public static function viewLocalizedatetime($dbdatetime)
{
$timelocal = $_SESSION["timezone"]*60;
$eqqdate = strtotime($dbdatetime) + $timelocal;
$eqdate = strftime("%Y-%m-%d %H:%M:%S",$eqqdate);
$datereturn = DATE('Y-m-d h:i:s ,$eqdate);
return "$datereturn";
}
/*
* localization convert localtime with date
*/
public static function viewLocalizedate($dbdatetime)
{
$timelocal = $_SESSION["timezone"]*60;
$eqqdate = strtotime($dbdatetime) + $timelocal;
$eqdate = strftime("%Y-%m-%d %H:%M:%S",$eqqdate);
$datereturn = DATE('Y-m-d ,$eqdate);
return "$datereturn";
}
/***************in html page*******************/
var d = new Date()
var timeformateData = -d.getTimezoneOffset();
/********************store data in input type nad send on servere***********/
* localization convert localtime with date time
*/
public static function viewLocalizedatetime($dbdatetime)
{
$timelocal = $_SESSION["timezone"]*60;
$eqqdate = strtotime($dbdatetime) + $timelocal;
$eqdate = strftime("%Y-%m-%d %H:%M:%S",$eqqdate);
$datereturn = DATE('Y-m-d h:i:s ,$eqdate);
return "$datereturn";
}
/*
* localization convert localtime with date
*/
public static function viewLocalizedate($dbdatetime)
{
$timelocal = $_SESSION["timezone"]*60;
$eqqdate = strtotime($dbdatetime) + $timelocal;
$eqdate = strftime("%Y-%m-%d %H:%M:%S",$eqqdate);
$datereturn = DATE('Y-m-d ,$eqdate);
return "$datereturn";
}
/***************in html page*******************/
var d = new Date()
var timeformateData = -d.getTimezoneOffset();
/********************store data in input type nad send on servere***********/
No comments:
Post a Comment