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.
tumbler APIを使用していて、node.jsのエクスプレスフレームワークを使用していますが、tumblroAuthの使用に問題があります。問題はタイムゾーンの違いです。
現在のタイムゾーンを変更するにはどうすればよいですか?
日付関数を呼び出す前に、TZ環境変数を設定できます。
> process.env.TZ = 'Europe/Amsterdam' 'Europe/Amsterdam' > d = new Date() Wed Mar 06 2013 23:30:42 GMT+0100 (CET) > d.toString() 'Wed Mar 06 2013 23:30:42 GMT+0100 (CET)' > d.toUTCString() 'Wed, 06 Mar 2013 22:30:42 GMT'