mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 17:41:46 +00:00
¬¬ world
This commit is contained in:
parent
0a27783604
commit
4bcea9b3e5
@ -25,6 +25,8 @@ date_default_timezone_set("GMT");
|
|||||||
if(strpos(" ".strtoupper(php_uname("s")), " WIN") !== false){
|
if(strpos(" ".strtoupper(php_uname("s")), " WIN") !== false){
|
||||||
$time = time();
|
$time = time();
|
||||||
$time -= $time % 60;
|
$time -= $time % 60;
|
||||||
|
//TODO: Parse different time & date formats by region. ¬¬ world
|
||||||
|
//Example: USA
|
||||||
exec("time.exe /T", $hour);
|
exec("time.exe /T", $hour);
|
||||||
$i = array_map("intval", explode(":", trim($hour[0])));
|
$i = array_map("intval", explode(":", trim($hour[0])));
|
||||||
exec("date.exe /T", $date);
|
exec("date.exe /T", $date);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user