mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
modify tab (4 spaces)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2657 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e925ed2e45
commit
fd27a03264
1 changed files with 18 additions and 18 deletions
|
|
@ -220,27 +220,27 @@
|
|||
$year = (int)substr($str,0,4);
|
||||
$month = (int)substr($str,4,2);
|
||||
$day = (int)substr($str,6,2);
|
||||
if(strlen($str) <= 8)
|
||||
{
|
||||
$gap = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$time_zone = $GLOBALS['_time_zone'];
|
||||
if($time_zone<0) $to = -1; else $to = 1;
|
||||
$t_hour = substr($time_zone,1,2)*$to;
|
||||
$t_min = substr($time_zone,3,2)*$to;
|
||||
if(strlen($str) <= 8)
|
||||
{
|
||||
$gap = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$time_zone = $GLOBALS['_time_zone'];
|
||||
if($time_zone<0) $to = -1; else $to = 1;
|
||||
$t_hour = substr($time_zone,1,2)*$to;
|
||||
$t_min = substr($time_zone,3,2)*$to;
|
||||
|
||||
$server_time_zone = date("O");
|
||||
if($server_time_zone<0) $so = -1; else $so = 1;
|
||||
$c_hour = substr($server_time_zone,1,2)*$so;
|
||||
$c_min = substr($server_time_zone,3,2)*$so;
|
||||
$server_time_zone = date("O");
|
||||
if($server_time_zone<0) $so = -1; else $so = 1;
|
||||
$c_hour = substr($server_time_zone,1,2)*$so;
|
||||
$c_min = substr($server_time_zone,3,2)*$so;
|
||||
|
||||
$g_min = $t_min - $c_min;
|
||||
$g_hour = $t_hour - $c_hour;
|
||||
$g_min = $t_min - $c_min;
|
||||
$g_hour = $t_hour - $c_hour;
|
||||
|
||||
$gap = $g_min*60 + $g_hour*60*60;
|
||||
}
|
||||
$gap = $g_min*60 + $g_hour*60*60;
|
||||
}
|
||||
|
||||
return mktime($hour, $min, $sec, $month?$month:1, $day?$day:1, $year)+$gap;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue