diff --git a/src/config.php b/src/config.php index b88982155..9afff1e91 100644 --- a/src/config.php +++ b/src/config.php @@ -28,7 +28,7 @@ if(strpos(" ".strtoupper(php_uname("s")), " WIN") !== false){ exec("time.exe /T", $hour); $i = array_map("intval", explode(":", trim($hour[0]))); exec("date.exe /T", $date); - $j = array_map("intval", explode("/", trim($date[0]))); + $j = array_map("intval", explode(substr($date[0], 2, 1), trim($date[0]))); $offset = round((mktime($i[0], $i[1], 0, $j[1], $j[0], $j[2]) - $time) / 60) * 60; }else{ exec("date +%s", $t);