Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私がする時:
var myDate = new Date();
デフォルトで UTC タイムゾーンを使用しますか? または、これはクライアントの場所によって異なる可能性がありますか?
MDNから
引数を指定しない場合、コンストラクターは現地時間に従って今日の日付と時刻の JavaScript Date オブジェクトを作成します。
現地時間のみに依存します。
私の知る限り、実行中のマシンから日付と時刻が取得され、OS から指定されたタイムゾーンが使用されるため、マシンが正しくセットアップされていれば、クライアントの場所に基づいて変更されると思います。
xhtml のコードは次のとおりです。
<h:form enctype="multipart/form-data" id="importForm"> <table cellpadding="0" cellspacing="0" bord