Remove unneccesary UTC time conversion in the parser of the Date object.

We don't need to convert time to UTC time when the argument is suffixed with 'Z'.

JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
This commit is contained in:
Roland Takacs
2015-07-23 15:02:59 +02:00
parent 3151a460fc
commit 722fd2a989
2 changed files with 3 additions and 4 deletions
+2
View File
@@ -115,3 +115,5 @@ assert (Date (Number.NaN) == Date ());
// Fixme: remove these cases when TZA and DST are supported.
assert (new Date ("2015-07-08T11:29:05.023-02:00").toString() == "2015-07-08T13:29:05.023");
assert (new Date ("2015-07-08T11:29:05.023-02:00").toLocaleString() == "2015-07-08T13:29:05.023");
assert (new Date ("2015-07-08T11:29:05.023Z").toISOString() == "2015-07-08T11:29:05.023Z");