From 3151a460fcfb0ec22a0f76d84383da070209ffcb Mon Sep 17 00:00:00 2001 From: Roland Takacs Date: Thu, 23 Jul 2015 14:50:41 +0200 Subject: [PATCH] Support local time output for the Date object. Convert the primitive time to local time if it is required. JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com --- .../ecma-builtin-helpers-date.cpp | 20 +++++++++++-------- tests/jerry/date-tostring.js | 4 ++++ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp b/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp index 2ee46198f..2a542b802 100644 --- a/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp +++ b/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp @@ -449,6 +449,7 @@ ecma_date_local_tza () * Get the real system time. ex: localtime_r, gmtime_r, daylight on Linux * Introduce system macros at first. */ + TODO ("Implement time functions in jerry-libc."); return ECMA_NUMBER_ZERO; } /* ecma_date_local_tza */ @@ -473,6 +474,7 @@ ecma_date_daylight_saving_ta (ecma_number_t time) /**< time value */ * Get the real system time. ex: localtime_r, gmtime_r, daylight on Linux * Introduce system macros at first. */ + TODO ("Implement time functions in jerry-libc."); return ECMA_NUMBER_ZERO; } /* ecma_date_daylight_saving_ta */ @@ -934,18 +936,21 @@ ecma_date_value_to_string (ecma_number_t datetime_num, /**