diff --git a/common/legacy.php b/common/legacy.php index df21108cb..7d86ffc1a 100644 --- a/common/legacy.php +++ b/common/legacy.php @@ -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; } /**