diff --git a/includes/admin/metaboxes/class-fullculqi-metaboxes.php b/includes/admin/metaboxes/class-fullculqi-metaboxes.php index 176e162..698b94c 100644 --- a/includes/admin/metaboxes/class-fullculqi-metaboxes.php +++ b/includes/admin/metaboxes/class-fullculqi-metaboxes.php @@ -150,8 +150,9 @@ public function sort_by_field( $wp_query ) { public function setTimezoneCulqi($datetime) { $timezone_config = get_option('gmt_offset'); - if(!$timezone_config) { - return $datetime; + $timezone_config = str_replace(".5",":30", $timezone_config); + if($timezone_config >= 0) { + $timezone_config = '+'.$timezone_config; } $timestamp = strtotime($datetime); $datetime = new DateTime();