javascript - new Date() with ISO 8061 date creates date according to timezone -


if create date object new date('2015-03-25') , i'm getting object tue mar 24 2015 16:00:00 gmt-0800 (akdt). expected ?

is expected?

unfortunately ecma tc39 decided date forms of iso 8601 strings should treated utc , not local (per iso 8601).

you might care read matt johnson's blog on issue.

the only reliable way parse date strings manually. library can help, not necessary.


Comments

Popular posts from this blog

libGdx unable to find files in android application data directory -

php - Webix Data Loading from Laravel Link -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -