mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-24 12:52:19 +09:00
Always use the internal timezone in ztime() function
This commit is contained in:
parent
c27da2ed24
commit
f7191123fd
1 changed files with 2 additions and 1 deletions
|
|
@ -578,7 +578,8 @@ function ztime($str)
|
|||
{
|
||||
$hour = $min = $sec = 0;
|
||||
}
|
||||
return mktime($hour, $min, $sec, $month, $day, $year);
|
||||
$offset = Rhymix\Framework\Config::get('locale.internal_timezone') ?: date('Z');
|
||||
return gmmktime($hour, $min, $sec, $month, $day, $year) - $offset;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue