MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Revised BSD License for more details.
- Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
- Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
+ 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.js - Last Update: 08/17/2007 SVN 85 - Author: cooldude2k $
+ $FileInfo: javascript.js - Last Update: 08/02/2019 SVN 905 - Author: cooldude2k $
*/
function getid(id) {
var itm;
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(tzname!=false)
+ {
+ document.getElementById("YourOffSet").value = tzname;
+ return true;
+ }
+}