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.
これにより、無効な形式の例外がスローされます。
DateTimeFormat.forPattern("%E, %d %M %Y %H:%m:%s %z").parseMillis("Sun, 20 May 2012 01:07:11 +0000")
なぜそれが機能しないのですか?スペックによると、うまくいくようです。
zパラメータが間違っているためです。たとえば、PSTにする必要があります。大文字にする(use Z)か、入力文字列を変更します。
z
Z
パターンはもっと似ているべきだと思います:
EEE, dd MMM YYYY HH:mm:ss Z
I'm using ExpressJS and have been trying to get PassportJS working. In my express.js config, I have the following:
express.js
app.configure(function () { // dyna