bugfix? game entry wasn't added to DB, hope it is fixed now
[e-DoKo.git] / functions.php
index a52ad7a86cca139b4660d31f34c75b9ab4230977..1c7b29b6f239a7d9e592868f861a3a71d6d925ac 100644 (file)
@@ -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