- display the submit time correctly in admin panels

- display the submitter correctly in admin panels
This commit is contained in:
Jonathan Ernst
2005-02-20 01:55:53 +00:00
committed by WineHQ
parent b103c6651d
commit 25f3f01412
7 changed files with 52 additions and 39 deletions

View File

@@ -34,11 +34,29 @@ function values($arr)
/*
* format date
*/
function makedate($time)
function print_date($sTimestamp)
{
return date("F d, Y H:i:s", $time);
return date("F d Y H:i:s", $sTimestamp);
}
function mysqltimestamp_to_unixtimestamp($sTimestamp)
{
$d = substr($sTimestamp,6,2); // day
$m = substr($sTimestamp,4,2); // month
$y = substr($sTimestamp,0,4); // year
$hours = substr($sTimestamp,8,2); // year
$minutes = substr($sTimestamp,10,2); // year
$seconds = substr($sTimestamp,12,2); // year
return mktime($hours,$minutes,$seconds,$m, $d, $y);
}
function mysqldatetime_to_unixtimestamp($sDatetime)
{
sscanf($sDatetime, "%4s-%2s-%2s %2s:%2s:%2s",
&$y, &$m, &$d,
&$hours, &$minutes, &$seconds);
return mktime($hours,$minutes,$seconds,$m, $d, $y);
}
function get_remote()
{