From 8b9fd5453b778c734f2201085b0c5692b64474f6 Mon Sep 17 00:00:00 2001 From: Jesse Bonzo <30665859+jesse-bonzo@users.noreply.github.com> Date: Wed, 26 Dec 2018 09:47:26 -0800 Subject: [PATCH] Update date parse example --- 1-js/05-data-types/10-date/article.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/1-js/05-data-types/10-date/article.md b/1-js/05-data-types/10-date/article.md index 3c328aba..d4c71e57 100644 --- a/1-js/05-data-types/10-date/article.md +++ b/1-js/05-data-types/10-date/article.md @@ -39,7 +39,13 @@ To create a new `Date` object call `new Date()` with one of the following argume ```js run let date = new Date("2017-01-26"); - alert(date); // Thu Jan 26 2017 ... + alert(date); + // The time portion of the date is assumed to be midnight GMT and + // is adjusted according to the timezone the code is run in + // So the result could be + // Thu Jan 26 2017 11:00:00 GMT+1100 (Australian Eastern Daylight Time) + // or + // Wed Jan 25 2017 16:00:00 GMT-0800 (Pacific Standard Time) ``` `new Date(year, month, date, hours, minutes, seconds, ms)`