OSDN Git Service

Add files via upload
authorKazuki Suzuki Przyborowski <kazuki.przyborowski@gmail.com>
Wed, 12 Sep 2018 07:35:00 +0000 (02:35 -0500)
committerGitHub <noreply@github.com>
Wed, 12 Sep 2018 07:35:00 +0000 (02:35 -0500)
inc/versioninfo.php
javascript.js

index 93afc9b..df3c5bb 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2017 iDB Support - http://idb.berlios.de/
     Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: versioninfo.php - Last Update: 09/12/2018 SVN 869 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 09/12/2018 SVN 870 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") {
@@ -27,7 +27,7 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) {
        return $return_var; }
 // Version number and date stuff. :P
 $VER1[0] = 0; $VER1[1] = 4; $VER1[2] = 9; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 869;
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 870;
 $SVNDay[0] = 9; $SVNDay[1] = 12; $SVNDay[2] = 2018; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
 $AltName = "DF2k"; $AltName2 = "DF2k"; $RName = "iDB"; $SFName = "IntDB";
 $RFullName = "Internet Discussion Boards"; $AltFullName = "Discussion Forums 2k"; $AltGM2k = "Game Maker 2k";
index 2d17f12..33871d5 100644 (file)
@@ -10,7 +10,7 @@
     Copyright 2004-2017 iDB Support - http://idb.berlios.de/
     Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: javascript.js - Last Update: 01/26/2017 SVN 810 - Author: cooldude2k $
+    $FileInfo: javascript.js - Last Update: 09/12/2018 SVN 870 - Author: cooldude2k $
 */
 function getid(id) {
 var itm;
@@ -41,4 +41,23 @@ function addsmiley(id,code) {
 var itm;
 itm = document.getElementById(id);
 var pretext = itm.value;
-itm.value = pretext + code; }
\ No newline at end of file
+itm.value = pretext + code; }
+
+function GetUserTimeZone() {
+    if (!Intl || !Intl.DateTimeFormat().resolvedOptions().timeZone) {
+        throw 'Time zones are not available in this environment';
+    }
+
+    try {
+        tzname = Intl.DateTimeFormat().resolvedOptions().timeZone;
+    }
+    catch (ex) {
+        tzname = false;
+        return false;
+    }
+    if()
+    {
+    document.getElementById("YourOffSet").value = tzname;
+    return true;
+    }
+}