X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=functions.php;h=1c7b29b6f239a7d9e592868f861a3a71d6d925ac;hp=0ce10e29801ad8b75d484a71fce53eaae51ffd7e;hb=e70edfecc1252420ceb06f55a97e1f14f76a767a;hpb=c997188d74716ef29f82da903435b95eec736d79 diff --git a/functions.php b/functions.php index 0ce10e2..1c7b29b 100644 --- a/functions.php +++ b/functions.php @@ -4,7 +4,7 @@ * config */ -$host = "http://doko.nubati.net/index.php"; +$host = "http://doko.nubati.net/database/index.php"; $wiki = "http://wiki.nubati.net/index.php?title=EmailDoko"; $debug = 1; @@ -431,4 +431,21 @@ function display_cards($me,$myturn) return; } +function return_timezone($offset) +{ + switch($offset) + { + case '1': + $zone = "Europe/Berlin"; + break; + case '-8': + $zone = "America/Vancouver"; + break; + default: + $zone = "Europe/London"; + } + + return $zone; +} + ?> \ No newline at end of file