commit
36491462ba
|
@ -87,7 +87,7 @@ function datetime_convert($from = 'UTC', $to = 'UTC', $s = 'now', $fmt = "Y-m-d
|
||||||
$from = 'UTC';
|
$from = 'UTC';
|
||||||
if($to === '')
|
if($to === '')
|
||||||
$to = 'UTC';
|
$to = 'UTC';
|
||||||
if($s === '' || (! is_string($s)))
|
if( ($s === '') || (! is_string($s)) )
|
||||||
$s = 'now';
|
$s = 'now';
|
||||||
|
|
||||||
// Slight hackish adjustment so that 'zero' datetime actually returns what is intended
|
// Slight hackish adjustment so that 'zero' datetime actually returns what is intended
|
||||||
|
|
Loading…
Reference in a new issue