OSDN Git Service

Add files via upload
authorKazuki Suzuki Przyborowski <kazuki.przyborowski@gmail.com>
Sun, 30 May 2021 22:59:36 +0000 (17:59 -0500)
committerGitHub <noreply@github.com>
Sun, 30 May 2021 22:59:36 +0000 (17:59 -0500)
inc/javascript.php
inc/versioninfo.php

index 1d179ac..f242a3a 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2019 iDB Support - https://idb.osdn.jp/support/category.php?act=view&id=1
     Copyright 2004-2019 Game Maker 2k - https://idb.osdn.jp/support/category.php?act=view&id=2
 
-    $FileInfo: javascript.php - Last Update: 08/02/2019 SVN 905 - Author: cooldude2k $
+    $FileInfo: javascript.php - Last Update: 5/31/2021 SVN 931 - Author: cooldude2k $
 */
 header("Content-Language: en");
 header("Vary: Accept");
@@ -47,4 +47,23 @@ itm = document.getElementById(id);
 var pretext = itm.value;
 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(tzname!=false)
+    {
+    document.getElementById("YourOffSet").value = tzname;
+    return true;
+    }
+}
+
 <?php gzip_page($Settings['use_gzip']); ?>
index f27733e..3de04bc 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2019 iDB Support - https://idb.osdn.jp/support/category.php?act=view&id=1\r
     Copyright 2004-2019 Game Maker 2k - https://idb.osdn.jp/support/category.php?act=view&id=2\r
 \r
-    $FileInfo: versioninfo.php - Last Update: 11/27/2020 SVN 930 - Author: cooldude2k $\r
+    $FileInfo: versioninfo.php - Last Update: 5/31/2021 SVN 931 - Author: cooldude2k $\r
 */\r
 $File3Name = basename($_SERVER['SCRIPT_NAME']);\r
 if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") {\r
@@ -27,8 +27,8 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) {
        return $return_var; }\r
 // Version number and date stuff. :P\r
 $VER1[0] = 0; $VER1[1] = 5; $VER1[2] = 3; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];\r
-$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 930; $GitRevN = "$Id$";\r
-$SVNDay[0] = 11; $SVNDay[1] = 27; $SVNDay[2] = 2020; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];\r
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 931; $GitRevN = "$Id$";\r
+$SVNDay[0] = 5; $SVNDay[1] = 31; $SVNDay[2] = 2021; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];\r
 $AltName = "DF2k"; $AltName2 = "DF2k"; $RName = "iDB"; $SFName = "IntDB";\r
 $RFullName = "Internet Discussion Boards"; $AltFullName = "Discussion Forums 2k"; $AltGM2k = "Game Maker 2k";\r
 $VerCheckName = "iDB"; $AltVerCheckName = "DF2k"; $AltiDBHome = "https://idb.osdn.jp/";\r